[−][src]Struct ascesis::Multiplicity
A scalar type common for node capacity, harc weight and state.
Valid multiplicities are nonnegative integers or ω.
Methods
impl Multiplicity
[src]
pub const fn omega() -> Multiplicity
[src]
pub fn finite(value: u64) -> Option<Multiplicity>
[src]
pub const fn zero() -> Multiplicity
[src]
pub const fn one() -> Multiplicity
[src]
pub fn is_omega(self) -> bool
[src]
pub fn is_zero(self) -> bool
[src]
pub fn is_finite(self) -> bool
[src]
pub fn is_positive(self) -> bool
[src]
pub fn checked_add(self, other: Multiplicity) -> Option<Multiplicity>
[src]
pub fn checked_sub(self, other: Multiplicity) -> Option<Multiplicity>
[src]
pub fn saturating_add(self, other: Multiplicity) -> Multiplicity
[src]
Note: don't use this for evaluation of state transition; call
checked_add()
instead.
pub fn saturating_sub(self, other: Multiplicity) -> Multiplicity
[src]
Note: don't use this for evaluation of state transition; call
checked_sub()
instead.
Trait Implementations
impl Clone for Multiplicity
[src]
fn clone(&self) -> Multiplicity
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Multiplicity
[src]
impl Debug for Multiplicity
[src]
impl Display for Multiplicity
[src]
impl Eq for Multiplicity
[src]
impl FromStr for Multiplicity
[src]
type Err = AcesError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Multiplicity, <Multiplicity as FromStr>::Err>
[src]
impl Hash for Multiplicity
[src]
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for Multiplicity
[src]
fn cmp(&self, other: &Multiplicity) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Multiplicity> for Multiplicity
[src]
fn eq(&self, other: &Multiplicity) -> bool
[src]
fn ne(&self, other: &Multiplicity) -> bool
[src]
impl PartialOrd<Multiplicity> for Multiplicity
[src]
fn partial_cmp(&self, other: &Multiplicity) -> Option<Ordering>
[src]
fn lt(&self, other: &Multiplicity) -> bool
[src]
fn le(&self, other: &Multiplicity) -> bool
[src]
fn gt(&self, other: &Multiplicity) -> bool
[src]
fn ge(&self, other: &Multiplicity) -> bool
[src]
impl StructuralEq for Multiplicity
[src]
impl StructuralPartialEq for Multiplicity
[src]
Auto Trait Implementations
impl RefUnwindSafe for Multiplicity
impl Send for Multiplicity
impl Sync for Multiplicity
impl Unpin for Multiplicity
impl UnwindSafe for Multiplicity
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<Reference, Outer, OuterFieldType, Inner> HasPart<Nested<Outer, Inner>> for Reference where
Inner: Part,
Outer: Part<PartType = Field<OuterFieldType>>,
OuterFieldType: HasPart<Inner, RawTarget = OuterFieldType> + PartialRefTarget + ?Sized,
Reference: HasPart<Outer> + ?Sized,
Inner: Part,
Outer: Part<PartType = Field<OuterFieldType>>,
OuterFieldType: HasPart<Inner, RawTarget = OuterFieldType> + PartialRefTarget + ?Sized,
Reference: HasPart<Outer> + ?Sized,
unsafe fn part_ptr(
ptr: *const <Reference as PartialRefTarget>::RawTarget
) -> <<Inner as Part>::PartType as PartType>::Ptr
ptr: *const <Reference as PartialRefTarget>::RawTarget
) -> <<Inner as Part>::PartType as PartType>::Ptr
unsafe fn part_ptr_mut(
ptr: *mut <Reference as PartialRefTarget>::RawTarget
) -> <<Inner as Part>::PartType as PartType>::PtrMut
ptr: *mut <Reference as PartialRefTarget>::RawTarget
) -> <<Inner as Part>::PartType as PartType>::PtrMut
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,