MCPcopy Create free account
hub / github.com/docknetwork/crypto / build_if_equal

Method build_if_equal

utils/src/pairs.rs:127–129  ·  view source on GitHub ↗
(left: &'left [Left], right: &'right [Right])

Source from the content-addressed store, hash-verified

125 }
126
127 fn build_if_equal(left: &'left [Left], right: &'right [Right]) -> Option<Self> {
128 (left.len() == right.len()).then_some(Self { right, left })
129 }
130}
131
132impl<'left, 'right, Left, Right> TryFrom<(&'left [Left], &'right [Right])>

Callers

nothing calls this directly

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected