pub trait Ring:
AddGrp
+ Mon
+ RingOpswhere
for<'a> &'a Self: RingOps<Self>,{
// Required methods
fn inv(&self) -> Option<Self>;
fn is_unit(&self) -> bool;
fn normalizing_unit(&self) -> Self;
// Provided methods
fn from_sign(s: Sign) -> Self { ... }
fn normalized(&self) -> Self { ... }
fn into_normalized(self) -> Self { ... }
fn is_pm_one(&self) -> bool { ... }
fn c_weight(&self) -> f64 { ... }
}Required Methods§
fn inv(&self) -> Option<Self>
fn is_unit(&self) -> bool
fn normalizing_unit(&self) -> Self
Provided Methods§
fn from_sign(s: Sign) -> Self
fn normalized(&self) -> Self
fn into_normalized(self) -> Self
fn is_pm_one(&self) -> bool
fn c_weight(&self) -> f64
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.