MCPcopy Create free account
hub / github.com/RustCrypto/SSH / as_str

Method as_str

ssh-key/src/comment.rs:122–124  ·  view source on GitHub ↗

Interpret the comment as a UTF-8 string. # Errors Returns [`Error::CharacterEncoding`] in the event the underlying bytes cannot be interpreted as valid UTF-8.

(&self)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 5

try_fromMethod · 0.45
from_opensshMethod · 0.45
encode_opensshMethod · 0.45
to_opensshMethod · 0.45
verify_prehashMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected