MCPcopy Index your code
hub / github.com/RustPython/RustPython / parse_from_bytes

Method parse_from_bytes

crates/common/src/cformat.rs:830–833  ·  view source on GitHub ↗
(bytes: &[u8])

Source from the content-addressed store, hash-verified

828
829impl CFormatBytes {
830 pub fn parse_from_bytes(bytes: &[u8]) -> Result<Self, CFormatError> {
831 let mut iter = bytes.iter().cloned().enumerate().peekable();
832 Self::parse(&mut iter)
833 }
834}
835
836pub type CFormatString = CFormatStrOrBytes<String>;

Callers

nothing calls this directly

Calls 2

parseFunction · 0.50
iterMethod · 0.45

Tested by

no test coverage detected