MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / text

Function text

atomic-core/src/change/format_v3/graph_fields/decode.rs:32–36  ·  view source on GitHub ↗
(input: &mut &'a [u8])

Source from the content-addressed store, hash-verified

30 Ok(v)
31}
32fn text<'a>(input: &mut &'a [u8]) -> FormatResult<&'a str> {
33 let (v, rest) = postcard::take_from_bytes(input)?;
34 *input = rest;
35 Ok(v)
36}
37fn owned(value: &str) -> FormatResult<String> {
38 let mut out = String::new();
39 out.try_reserve(value.len())

Callers 1

parseMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected