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

Method populate

src/derive/option.rs:103–106  ·  view source on GitHub ↗
(&mut self, input: &mut &'a [u8], length: usize)

Source from the content-addressed store, hash-verified

101
102impl<'a, T: Decode<'a>> View<'a> for OptionDecoder<'a, T> {
103 fn populate(&mut self, input: &mut &'a [u8], length: usize) -> Result<()> {
104 self.variants.populate(input, length)?;
105 self.some.populate(input, self.variants.length(1))
106 }
107}
108
109impl<'a, T: Decode<'a>> Decoder<'a, Option<T>> for OptionDecoder<'a, T> {

Callers

nothing calls this directly

Calls 1

lengthMethod · 0.45

Tested by

no test coverage detected