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

Method populate

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

Source from the content-addressed store, hash-verified

72
73impl<'a, T: Decode<'a>, E: Decode<'a>> View<'a> for ResultDecoder<'a, T, E> {
74 fn populate(&mut self, input: &mut &'a [u8], length: usize) -> Result<(), Error> {
75 self.variants.populate(input, length)?;
76 self.ok.populate(input, self.variants.length(0))?;
77 self.err.populate(input, self.variants.length(1))
78 }
79}
80
81impl<'a, T: Decode<'a>, E: Decode<'a>> Decoder<'a, Result<T, E>> for ResultDecoder<'a, T, E> {

Callers

nothing calls this directly

Calls 1

lengthMethod · 0.45

Tested by

no test coverage detected