<re_irc>
<@dominicclifton:matrix.org> If anyone here does embedded work using IntelliJ and uses the rust plugin I'd love to get some thumbs up on this issue:
<re_irc>
<@jannic:matrix.org> As the linked hackmd document was edited yesterday, I guess the results of the meeting were immediately incorporated into that document.
cr1901 has quit [Remote host closed the connection]
cr1901 has joined #rust-embedded
IlPalazzo-ojiisa has joined #rust-embedded
cr1901 has quit [Remote host closed the connection]
Foxyloxy has joined #rust-embedded
hmw has quit [Quit: Bye.]
hmw has joined #rust-embedded
loki_val has quit [Ping timeout: 250 seconds]
emerent has quit [Ping timeout: 248 seconds]
crabbedhaloablut has joined #rust-embedded
emerent has joined #rust-embedded
cr1901 has joined #rust-embedded
cr1901 has quit [Remote host closed the connection]
cr1901 has joined #rust-embedded
cr1901 has quit [Remote host closed the connection]
cr1901 has joined #rust-embedded
cr1901 has quit [Remote host closed the connection]
cr1901 has joined #rust-embedded
<re_irc>
<@thejpster:matrix.org> Is anyone else watching the embedded.fm / memfault live chat?
radens has joined #rust-embedded
IlPalazzo-ojiisa has quit [Quit: Leaving.]
<re_irc>
<@barafael:matrix.org> : Where is/was this?
dc740 has joined #rust-embedded
<re_irc>
<@thejpster:matrix.org> I signed up to a webinar on the memfault I think
<re_irc>
It’s like an UnsafeCell<Option> but you can only set it once. Useful for global GPIO pin objects and similar.
dc740 has quit [Remote host closed the connection]
<re_irc>
<@peter9477:matrix.org> Can you not then set it again even after you "take()" it? Or is that a minor nuance that isn't clear enough from the docs?
<re_irc>
<@peter9477:matrix.org> -even
<re_irc>
<@dirbaio:matrix.org> if you take() it becomes empty, so you can set it again
<re_irc>
<@dirbaio:matrix.org> take() requires &mut self so you normally wouldn't use it
<re_irc>
<@dirbaio:matrix.org> it's intended to be put in a "static" or similar places where you only get "&", not "&mut"
<re_irc>
<@peter9477:matrix.org> Yep, that's what I figured. But as a pedant I was confused by "can set only once", despite there being a path to setting it repeatedly...
<re_irc>
<@dirbaio:matrix.org> in which case it is indeed true that you can only set it once
<re_irc>
<@dirbaio:matrix.org> :)
<re_irc>
<@dirbaio:matrix.org> the mut methods are provided for completeness I guess.
<re_irc>
<@peter9477:matrix.org> And possibly useful in e.g. automated testing, or other unusual situations.