PyroPeter has quit [Ping timeout: 268 seconds]
PyroPeter has joined #rust-embedded
starblue has quit [Ping timeout: 244 seconds]
starblue has joined #rust-embedded
cr1901 has quit [Read error: Connection reset by peer]
fabic_ has joined #rust-embedded
cr1901 has joined #rust-embedded
fabic_ has quit [Ping timeout: 265 seconds]
PyroPeter has quit [Ping timeout: 268 seconds]
PyroPeter has joined #rust-embedded
fabic_ has joined #rust-embedded
fabic_ has quit [Ping timeout: 244 seconds]
re_irc has quit [*.net *.split]
bpye has quit [*.net *.split]
Ekho has quit [*.net *.split]
re_irc has joined #rust-embedded
bpye has joined #rust-embedded
Ekho has joined #rust-embedded
fooker has quit [Quit: WeeChat 3.1]
fooker has joined #rust-embedded
inara has quit [Quit: Leaving]
inara has joined #rust-embedded
<re_irc> <@luojia65:matrix.org> How to convert `[u16; 8]` into `u128`? (using big endian)
<re_irc> <@ryan-summers:matrix.org> https://doc.rust-lang.org/std/primitive.u128.html#method.from_be_bytes
<re_irc> <@ryan-summers:matrix.org> You'll need to convert your u16s into a byte array first though
<re_irc> <@therealprof:matrix.org> That's only for [u8] though...
<re_irc> <@ryan-summers:matrix.org> Or you could just manually shift
<re_irc> <@ryan-summers:matrix.org> That's easy enough to do via turning each u16 into an array of bytes and then constructing it in-place
fabic_ has joined #rust-embedded
<re_irc> <@robtsuk:matrix.org> tonygarnockjones:matrix.org: rustc crashes
<re_irc> <@tonygarnockjones:matrix.org> robtsuk:matrix.org: Ah ok. Yeah the trouble I was having with aarch64 wasn't a rustc crash but a linking failure.
<re_irc> <@firefrommoonlight:matrix.org> Of note from 2021 edition: https://doc.rust-lang.org/edition-guide/rust-2021/prelude.html :
<re_irc> <@firefrommoonlight:matrix.org> > Many types define their own inherent methods with the same name as a trait method. For instance, below the struct MyStruct implements from_iter which shares the same name with the method from the trait FromIterator found in the standard librar
<re_irc> <@firefrommoonlight:matrix.org> This is relevant to EH
<re_irc> <@firefrommoonlight:matrix.org> I've been using `Struct::method` syntax from the EH impls to avoid the ambiguity
<re_irc> <@firefrommoonlight:matrix.org> Sounds like now it'll do it automatically
<re_irc> <@firefrommoonlight:matrix.org> eg with the normal `instance.method`
<re_irc> <@dirbaio:matrix.org> what's the change?
<re_irc> <@dirbaio:matrix.org> `Inherent methods always take precedent over trait methods` has always been the case
<re_irc> <@firefrommoonlight:matrix.org> Looks like I misread
<re_irc> <@firefrommoonlight:matrix.org> i'm not actually sure what the change is
fabic_ has quit [Ping timeout: 260 seconds]
<re_irc> <@thejpster:matrix.org> Anyone played with an Arm "Fixed Virtual Platform"? There's a free (as in beer) one for the Cortex-M55.
tafama has joined #rust-embedded
tafa has quit [Read error: Connection reset by peer]
emerent_ has joined #rust-embedded
emerent_ is now known as emerent
emerent has quit [Killed (zirconium.libera.chat (Nickname regained by services))]
cr1901 has quit [Read error: Connection reset by peer]
cr1901 has joined #rust-embedded