MCPcopy Index your code
hub / github.com/ProgrammingRust/examples / from_bytes

Method from_bytes

ascii/src/lib.rs:14–19  ·  view source on GitHub ↗

Create an `Ascii` from the ASCII text in `bytes`. Return a `NotAsciiError` error if `bytes` contains any non-ASCII characters.

(bytes: Vec<u8>)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 3

NotAsciiErrorClass · 0.85
AsciiClass · 0.85
iterMethod · 0.80

Tested by

no test coverage detected