MCPcopy Create free account
hub / github.com/SoftbearStudios/bitcode / decode

Method decode

src/coder.rs:82–86  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

80 /// Can only decode `self.populate(_, length)` items.
81 #[inline(always)]
82 fn decode(&mut self) -> T {
83 let mut out = MaybeUninit::uninit();
84 self.decode_in_place(&mut out);
85 unsafe { out.assume_init() }
86 }
87
88 /// [`Self::decode`] without redundant copies. Only downside is panics will leak the value.
89 /// The only panics out of our control are Hash/Ord/PartialEq for BinaryHeap/BTreeMap/HashMap.

Callers 1

decode_in_placeMethod · 0.45

Implementers 15

str.rssrc/str.rs
int.rssrc/int.rs
f32.rssrc/f32.rs
length.rssrc/length.rs
bool.rssrc/bool.rs
arrayvec.rssrc/ext/arrayvec.rs
vec.rssrc/derive/vec.rs
option.rssrc/derive/option.rs
array.rssrc/derive/array.rs
smart_ptr.rssrc/derive/smart_ptr.rs
empty.rssrc/derive/empty.rs
variant.rssrc/derive/variant.rs

Calls 1

decode_in_placeMethod · 0.45

Tested by

no test coverage detected