pub trait Canonicalize: IsCanonical {
// Required method
fn canonicalize(&mut self);
}Required Methods§
Sourcefn canonicalize(&mut self)
fn canonicalize(&mut self)
Mutate self into a canonical representation.
Afterwards IsCanonical::is_canonical() must return true
and you could enclose self into Canonical using either
Canonical::tie() or Canonical::tie_unchecked().
Implementations on Foreign Types§
Source§impl<T> Canonicalize for Option<T>where
T: Canonicalize,
impl<T> Canonicalize for Option<T>where
T: Canonicalize,
fn canonicalize(&mut self)
Source§impl<T> Canonicalize for Vec<T>where
T: Canonicalize + CanonicalOrd,
Available on crate feature std only.
impl<T> Canonicalize for Vec<T>where
T: Canonicalize + CanonicalOrd,
Available on crate feature
std only.