MCPcopy 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

274impl 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
281impl TryFrom<ColumnAttribute> for Constraints {

Callers

nothing calls this directly

Calls 5

OkFunction · 0.50
identityFunction · 0.50
ErrFunction · 0.50
mapMethod · 0.45
kindMethod · 0.45

Tested by

no test coverage detected