MCPcopy Create free account
hub / github.com/hashintel/hash / encode

Method encode

libs/@local/harpc/wire-protocol/src/codec/encode.rs:24–29  ·  view source on GitHub ↗
(&self, buffer: &mut Buffer<B>)

Source from the content-addressed store, hash-verified

22 type Error = BufferError;
23
24 fn encode<B>(&self, buffer: &mut Buffer<B>) -> Result<(), Report<Self::Error>>
25 where
26 B: BufMut,
27 {
28 buffer.push_number(*self)
29 }
30}
31
32impl Encode for u16 {

Callers 2

encode_valueFunction · 0.45
assert_encode_errorFunction · 0.45

Calls 7

try_fromFunction · 0.85
ErrInterface · 0.85
OkInterface · 0.85
push_numberMethod · 0.80
push_bytesMethod · 0.80
change_contextMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected