MCPcopy Create free account
hub / github.com/SSheldon/rust-objc / from_str

Method from_str

src/encode.rs:43–45  ·  view source on GitHub ↗

Constructs an `Encoding` from its string representation. Unsafe because the caller must ensure the string is a valid encoding.

(code: &str)

Source from the content-addressed store, hash-verified

41 /// Constructs an `Encoding` from its string representation.
42 /// Unsafe because the caller must ensure the string is a valid encoding.
43 pub unsafe fn from_str(code: &str) -> Encoding {
44 from_str(code)
45 }
46
47 /// Returns self as a `str`.
48 pub fn as_str(&self) -> &str {

Callers

nothing calls this directly

Calls 1

from_strFunction · 0.85

Tested by

no test coverage detected