Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/clockworklabs/SpacetimeDB
/ try_from
Method
try_from
crates/primitives/src/attr.rs:276–278 ·
view source on GitHub ↗
(v: u8)
Source
from the content-addressed store, hash-verified
274
impl TryFrom<u8> for Constraints {
275
type Error = ();
276
fn try_from(v: u8) -> Result<Self, Self::Error> {
277
ColumnAttribute::from_bits(v).ok_or(()).map(Self::new)
278
}
279
}
280
281
impl TryFrom<ColumnAttribute> for Constraints {
Callers
nothing calls this directly
Calls
5
Ok
Function · 0.50
identity
Function · 0.50
Err
Function · 0.50
map
Method · 0.45
kind
Method · 0.45
Tested by
no test coverage detected