Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cosdata/cosdata
/ from_str
Method
from_str
src/models/crypto.rs:27–29 ·
view source on GitHub ↗
(s: &str)
Source
from the content-addressed store, hash-verified
25
type Err = Infallible;
26
27
fn from_str(s: &str) -> Result<Self, Self::Err> {
28
Ok(Self::new(s.as_bytes()))
29
}
30
}
31
32
impl SingleSHA256Hash {
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected