pub struct NaturalCountProvenanceSemiringV0 {
pub zero: u8,
pub one: u8,
pub addition: &'static str,
pub multiplication: &'static str,
pub idempotent_addition: bool,
}Fields§
§zero: u8§one: u8§addition: &'static str§multiplication: &'static str§idempotent_addition: boolImplementations§
Source§impl NaturalCountProvenanceSemiringV0
impl NaturalCountProvenanceSemiringV0
pub const fn new() -> NaturalCountProvenanceSemiringV0
Trait Implementations§
Source§impl Clone for NaturalCountProvenanceSemiringV0
impl Clone for NaturalCountProvenanceSemiringV0
Source§fn clone(&self) -> NaturalCountProvenanceSemiringV0
fn clone(&self) -> NaturalCountProvenanceSemiringV0
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 Default for NaturalCountProvenanceSemiringV0
impl Default for NaturalCountProvenanceSemiringV0
Source§fn default() -> NaturalCountProvenanceSemiringV0
fn default() -> NaturalCountProvenanceSemiringV0
Returns the “default value” for a type. Read more
impl Eq for NaturalCountProvenanceSemiringV0
Source§impl ProvenanceSemiringV0 for NaturalCountProvenanceSemiringV0
impl ProvenanceSemiringV0 for NaturalCountProvenanceSemiringV0
const IDENTIFIER: &'static str = "naturalCount"
type Element = u16
fn zero( &self, ) -> <NaturalCountProvenanceSemiringV0 as ProvenanceSemiringV0>::Element
fn one( &self, ) -> <NaturalCountProvenanceSemiringV0 as ProvenanceSemiringV0>::Element
fn add( &self, lhs: &<NaturalCountProvenanceSemiringV0 as ProvenanceSemiringV0>::Element, rhs: &<NaturalCountProvenanceSemiringV0 as ProvenanceSemiringV0>::Element, ) -> <NaturalCountProvenanceSemiringV0 as ProvenanceSemiringV0>::Element
fn multiply( &self, lhs: &<NaturalCountProvenanceSemiringV0 as ProvenanceSemiringV0>::Element, rhs: &<NaturalCountProvenanceSemiringV0 as ProvenanceSemiringV0>::Element, ) -> <NaturalCountProvenanceSemiringV0 as ProvenanceSemiringV0>::Element
fn idempotent_addition(&self) -> bool
fn semiring_identifier(&self) -> &'static str
Source§impl Serialize for NaturalCountProvenanceSemiringV0
impl Serialize for NaturalCountProvenanceSemiringV0
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 NaturalCountProvenanceSemiringV0
Auto Trait Implementations§
impl Freeze for NaturalCountProvenanceSemiringV0
impl RefUnwindSafe for NaturalCountProvenanceSemiringV0
impl Send for NaturalCountProvenanceSemiringV0
impl Sync for NaturalCountProvenanceSemiringV0
impl Unpin for NaturalCountProvenanceSemiringV0
impl UnsafeUnpin for NaturalCountProvenanceSemiringV0
impl UnwindSafe for NaturalCountProvenanceSemiringV0
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.