barsoap@lemm.ee to Rust Lang@lemmyrs.orgEnglish · 1 year agoUse Arc Instead of Vecwww.youtube.comexternal-linkmessage-square2fedilinkarrow-up18arrow-down10cross-posted to: rustlang@lemmyrs.org
arrow-up18arrow-down1external-linkUse Arc Instead of Vecwww.youtube.combarsoap@lemm.ee to Rust Lang@lemmyrs.orgEnglish · 1 year agomessage-square2fedilinkcross-posted to: rustlang@lemmyrs.org
minus-squarenivenkos@lemmy.worldlinkfedilinkEnglisharrow-up2·1 year agoTitle should really be Arc<[T]> at first I was like Arc<T> makes no sense. It’s a great video though. It’d be nice if the compiler / clippy could detect entirely non-mutable uses of data structures that could be switched like this.
Title should really be
Arc<[T]>
at first I was likeArc<T>
makes no sense.It’s a great video though. It’d be nice if the compiler / clippy could detect entirely non-mutable uses of data structures that could be switched like this.