pub struct Lin01ProvenanceSemiringV0 {
pub zero: &'static str,
pub one: &'static str,
pub addition: &'static str,
pub multiplication: &'static str,
pub idempotent_addition: bool,
}Fields§
§zero: &'static str§one: &'static str§addition: &'static str§multiplication: &'static str§idempotent_addition: boolImplementations§
Source§impl Lin01ProvenanceSemiringV0
impl Lin01ProvenanceSemiringV0
pub const fn new() -> Lin01ProvenanceSemiringV0
Trait Implementations§
Source§impl Clone for Lin01ProvenanceSemiringV0
impl Clone for Lin01ProvenanceSemiringV0
Source§fn clone(&self) -> Lin01ProvenanceSemiringV0
fn clone(&self) -> Lin01ProvenanceSemiringV0
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Lin01ProvenanceSemiringV0
impl Debug for Lin01ProvenanceSemiringV0
Source§impl Default for Lin01ProvenanceSemiringV0
impl Default for Lin01ProvenanceSemiringV0
Source§fn default() -> Lin01ProvenanceSemiringV0
fn default() -> Lin01ProvenanceSemiringV0
Returns the “default value” for a type. Read more
impl Eq for Lin01ProvenanceSemiringV0
Source§impl ProvenanceSemiringV0 for Lin01ProvenanceSemiringV0
impl ProvenanceSemiringV0 for Lin01ProvenanceSemiringV0
const IDENTIFIER: &'static str = "lin01"
type Element = bool
fn zero(&self) -> <Lin01ProvenanceSemiringV0 as ProvenanceSemiringV0>::Element
fn one(&self) -> <Lin01ProvenanceSemiringV0 as ProvenanceSemiringV0>::Element
fn add( &self, lhs: &<Lin01ProvenanceSemiringV0 as ProvenanceSemiringV0>::Element, rhs: &<Lin01ProvenanceSemiringV0 as ProvenanceSemiringV0>::Element, ) -> <Lin01ProvenanceSemiringV0 as ProvenanceSemiringV0>::Element
fn multiply( &self, lhs: &<Lin01ProvenanceSemiringV0 as ProvenanceSemiringV0>::Element, rhs: &<Lin01ProvenanceSemiringV0 as ProvenanceSemiringV0>::Element, ) -> <Lin01ProvenanceSemiringV0 as ProvenanceSemiringV0>::Element
fn idempotent_addition(&self) -> bool
fn semiring_identifier(&self) -> &'static str
Source§impl Serialize for Lin01ProvenanceSemiringV0
impl Serialize for Lin01ProvenanceSemiringV0
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Lin01ProvenanceSemiringV0
Auto Trait Implementations§
impl Freeze for Lin01ProvenanceSemiringV0
impl RefUnwindSafe for Lin01ProvenanceSemiringV0
impl Send for Lin01ProvenanceSemiringV0
impl Sync for Lin01ProvenanceSemiringV0
impl Unpin for Lin01ProvenanceSemiringV0
impl UnsafeUnpin for Lin01ProvenanceSemiringV0
impl UnwindSafe for Lin01ProvenanceSemiringV0
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.