MCPcopy Create free account
hub / github.com/arkworks-rs/poly-commit / try_into

Method try_into

poly-commit/src/data_structures.rs:259–264  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

257impl core::convert::TryInto<PolynomialLabel> for LCTerm {
258 type Error = ();
259 fn try_into(self) -> Result<PolynomialLabel, ()> {
260 match self {
261 Self::One => Err(()),
262 Self::PolyLabel(l) => Ok(l),
263 }
264 }
265}
266
267impl<'a> core::convert::TryInto<&'a PolynomialLabel> for &'a LCTerm {

Callers 6

open_combinationsMethod · 0.80
check_combinationsMethod · 0.80
open_combinationsMethod · 0.80
check_combinationsMethod · 0.80
open_combinationsMethod · 0.80
check_combinationsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected