MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / decode

Method decode

src/storage-types/src/errors.rs:77–80  ·  view source on GitHub ↗
(buf: &[u8])

Source from the content-addressed store, hash-verified

75 }
76
77 pub fn decode(buf: &[u8]) -> Result<Self, String> {
78 let proto = ProtoDecodeError::decode(buf).map_err(|err| err.to_string())?;
79 proto.into_rust().map_err(|err| err.to_string())
80 }
81}
82
83impl Display for DecodeError {

Callers 1

newMethod · 0.45

Calls 3

decodeFunction · 0.50
to_stringMethod · 0.45
into_rustMethod · 0.45

Tested by

no test coverage detected