mz_compute::render::reduce

Type Alias AccumCount

Source
type AccumCount = Overflowing<i128>;
Expand description

The type for accumulator counting. Set to Overflowing<u128>.

Aliased Type§

struct AccumCount(/* private fields */);

Implementations

Source§

impl<T> Overflowing<T>

Source

pub fn into_inner(self) -> T

Returns the inner value.

Source§

impl Overflowing<i128>

Source

pub const MINUS_ONE: Overflowing<i128> = _

The value minus one.

Source

pub fn abs(self) -> Overflowing<i128>

Returns the absolute value of the number.

Source

pub fn unsigned_abs(self) -> u128

Returns the absolute value of the number as an unsigned integer.

Source

pub fn is_positive(self) -> bool

Returns true if the number is positive and false if the number is zero or negative.

§Examples
assert!(!Overflowing::<i64>::from(-10i32).is_positive());
assert!(Overflowing::<i64>::from(10i32).is_positive());
Source

pub fn is_negative(self) -> bool

Returns true if the number is negative and false if the number is zero or positive.

§Examples
assert!(Overflowing::<i64>::from(-10i32).is_negative());
assert!(!Overflowing::<i64>::from(10i32).is_negative());
Source§

impl Overflowing<i128>

Source

pub const ZERO: Overflowing<i128> = _

The value zero.

Source

pub const ONE: Overflowing<i128> = _

The value one.

Source

pub const MIN: Overflowing<i128> = _

The minimum value.

Source

pub const MAX: Overflowing<i128> = _

The maximum value.

Source

pub fn checked_add(self, rhs: Overflowing<i128>) -> Option<Overflowing<i128>>

Checked addition. Returns None if overflow occurred.

Source

pub fn wrapping_add(self, rhs: Overflowing<i128>) -> Overflowing<i128>

Wrapping addition.

Source

pub fn checked_mul(self, rhs: Overflowing<i128>) -> Option<Overflowing<i128>>

Checked multiplication. Returns None if overflow occurred.

Source

pub fn wrapping_mul(self, rhs: Overflowing<i128>) -> Overflowing<i128>

Wrapping multiplication.

Source

pub fn is_zero(self) -> bool

Returns true if the number is zero.

Trait Implementations

Source§

impl<'a> Add<&'a Overflowing<i128>> for Overflowing<i128>

Source§

type Output = Overflowing<i128>

The resulting type after applying the + operator.
Source§

fn add( self, rhs: &'a Overflowing<i128>, ) -> <Overflowing<i128> as Add<&'a Overflowing<i128>>>::Output

Performs the + operation. Read more
Source§

impl Add for Overflowing<i128>

Source§

type Output = Overflowing<i128>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Overflowing<i128>) -> <Overflowing<i128> as Add>::Output

Performs the + operation. Read more
Source§

impl AddAssign<&Overflowing<i128>> for Overflowing<i128>

Source§

fn add_assign(&mut self, rhs: &Overflowing<i128>)

Performs the += operation. Read more
Source§

impl AddAssign for Overflowing<i128>

Source§

fn add_assign(&mut self, rhs: Overflowing<i128>)

Performs the += operation. Read more
Source§

impl<T> Arbitrary for Overflowing<T>
where T: Arbitrary,

Source§

type Parameters = <T as Arbitrary>::Parameters

The type of parameters that arbitrary_with accepts for configuration of the generated Strategy. Parameters must implement Default.
Source§

type Strategy = Map<<T as Arbitrary>::Strategy, fn(_: T) -> Overflowing<T>>

The type of Strategy used to generate values of type Self.
Source§

fn arbitrary_with( _top: <Overflowing<T> as Arbitrary>::Parameters, ) -> <Overflowing<T> as Arbitrary>::Strategy

Generates a Strategy for producing arbitrary values of type the implementing type (Self). The strategy is passed the arguments given in args. Read more
Source§

fn arbitrary() -> Self::Strategy

Generates a Strategy for producing arbitrary values of type the implementing type (Self). Read more
Source§

impl<T> CastFrom<T> for Overflowing<i128>
where i128: CastFrom<T>,

Source§

fn cast_from(value: T) -> Overflowing<i128>

Performs the cast.
Source§

impl<T> Clone for Overflowing<T>
where T: Clone,

Source§

fn clone(&self) -> Overflowing<T>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T> Columnar for Overflowing<T>
where T: Columnar + Copy + Send, Vec<T>: Container<T>, Overflowing<T>: From<T>, <T as Columnar>::Ref<'a>: for<'a> CopyAs<T>,

Source§

type Ref<'a> = Overflowing<T>

For each lifetime, a reference with that lifetime. Read more
Source§

type Container = Overflows<T, Vec<T>>

The type that stores the columnar representation. Read more
Source§

fn into_owned<'a>( other: <Overflowing<T> as Columnar>::Ref<'a>, ) -> Overflowing<T>

Produce an instance of Self from Self::Ref<'a>.
Source§

fn copy_from<'a>(&mut self, other: Self::Ref<'a>)
where Self: Sized,

Repopulates self from a reference. Read more
Source§

fn as_columns<'a, I>(selves: I) -> Self::Container
where I: IntoIterator<Item = &'a Self>, Self: 'a,

Converts a sequence of the references to the type into columnar form.
Source§

fn into_columns<I>(selves: I) -> Self::Container
where I: IntoIterator<Item = Self>, Self: Sized,

Converts a sequence of the type into columnar form. Read more
Source§

impl Columnation for Overflowing<i128>

Source§

type InnerRegion = CopyRegion<Overflowing<i128>>

The type of region capable of absorbing allocations owned by the Self type. Note: not allocations of Self, but of the things that it owns.
Source§

impl<T> Debug for Overflowing<T>
where T: Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<T> Default for Overflowing<T>
where T: Default,

Source§

fn default() -> Overflowing<T>

Returns the “default value” for a type. Read more
Source§

impl<'de, T> Deserialize<'de> for Overflowing<T>
where T: Deserialize<'de>,

Source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<Overflowing<T>, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Abelian for Overflowing<i128>

Source§

fn negate(&mut self)

The method of std::ops::Neg, for types that do not implement Neg.
Source§

impl<T> Display for Overflowing<T>
where T: Display,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Div for Overflowing<i128>

Source§

type Output = Overflowing<<i128 as Div>::Output>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Overflowing<i128>) -> <Overflowing<i128> as Div>::Output

Performs the / operation. Read more
Source§

impl From<Overflowing<bool>> for Overflowing<i128>

Source§

fn from(value: Overflowing<bool>) -> Overflowing<i128>

Converts to this type from the input type.
Source§

impl From<Overflowing<i16>> for Overflowing<i128>

Source§

fn from(value: Overflowing<i16>) -> Overflowing<i128>

Converts to this type from the input type.
Source§

impl From<Overflowing<i32>> for Overflowing<i128>

Source§

fn from(value: Overflowing<i32>) -> Overflowing<i128>

Converts to this type from the input type.
Source§

impl From<Overflowing<i64>> for Overflowing<i128>

Source§

fn from(value: Overflowing<i64>) -> Overflowing<i128>

Converts to this type from the input type.
Source§

impl From<Overflowing<i8>> for Overflowing<i128>

Source§

fn from(value: Overflowing<i8>) -> Overflowing<i128>

Converts to this type from the input type.
Source§

impl From<Overflowing<u16>> for Overflowing<i128>

Source§

fn from(value: Overflowing<u16>) -> Overflowing<i128>

Converts to this type from the input type.
Source§

impl From<Overflowing<u32>> for Overflowing<i128>

Source§

fn from(value: Overflowing<u32>) -> Overflowing<i128>

Converts to this type from the input type.
Source§

impl From<Overflowing<u64>> for Overflowing<i128>

Source§

fn from(value: Overflowing<u64>) -> Overflowing<i128>

Converts to this type from the input type.
Source§

impl From<Overflowing<u8>> for Overflowing<i128>

Source§

fn from(value: Overflowing<u8>) -> Overflowing<i128>

Converts to this type from the input type.
Source§

impl From<bool> for Overflowing<i128>

Source§

fn from(value: bool) -> Overflowing<i128>

Converts to this type from the input type.
Source§

impl From<i128> for Overflowing<i128>

Source§

fn from(value: i128) -> Overflowing<i128>

Converts to this type from the input type.
Source§

impl From<i16> for Overflowing<i128>

Source§

fn from(value: i16) -> Overflowing<i128>

Converts to this type from the input type.
Source§

impl From<i32> for Overflowing<i128>

Source§

fn from(value: i32) -> Overflowing<i128>

Converts to this type from the input type.
Source§

impl From<i64> for Overflowing<i128>

Source§

fn from(value: i64) -> Overflowing<i128>

Converts to this type from the input type.
Source§

impl From<i8> for Overflowing<i128>

Source§

fn from(value: i8) -> Overflowing<i128>

Converts to this type from the input type.
Source§

impl From<u16> for Overflowing<i128>

Source§

fn from(value: u16) -> Overflowing<i128>

Converts to this type from the input type.
Source§

impl From<u32> for Overflowing<i128>

Source§

fn from(value: u32) -> Overflowing<i128>

Converts to this type from the input type.
Source§

impl From<u64> for Overflowing<i128>

Source§

fn from(value: u64) -> Overflowing<i128>

Converts to this type from the input type.
Source§

impl From<u8> for Overflowing<i128>

Source§

fn from(value: u8) -> Overflowing<i128>

Converts to this type from the input type.
Source§

impl FromStr for Overflowing<i128>

Source§

type Err = <i128 as FromStr>::Err

The associated error which can be returned from parsing.
Source§

fn from_str( s: &str, ) -> Result<Overflowing<i128>, <Overflowing<i128> as FromStr>::Err>

Parses a string s to return a value of this type. Read more
Source§

impl Hash for Overflowing<i128>

Source§

fn hash<H>(&self, state: &mut H)
where H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl IsZero for Overflowing<i128>

Source§

fn is_zero(&self) -> bool

Returns true if the element is the additive identity. Read more
Source§

impl Monoid for Overflowing<i128>

Source§

fn zero() -> Overflowing<i128>

A zero element under the semigroup addition operator.
Source§

impl Mul for Overflowing<i128>

Source§

type Output = Overflowing<i128>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Overflowing<i128>) -> <Overflowing<i128> as Mul>::Output

Performs the * operation. Read more
Source§

impl Multiply for Overflowing<i128>

Source§

type Output = Overflowing<i128>

Output type per the Mul trait.
Source§

fn multiply( self, rhs: &Overflowing<i128>, ) -> <Overflowing<i128> as Multiply>::Output

Core method per the Mul trait.
Source§

impl Neg for Overflowing<i128>

Source§

type Output = Overflowing<<i128 as Neg>::Output>

The resulting type after applying the - operator.
Source§

fn neg(self) -> <Overflowing<i128> as Neg>::Output

Performs the unary - operation. Read more
Source§

impl Num for Overflowing<i128>

Source§

type FromStrRadixErr = <i128 as Num>::FromStrRadixErr

Source§

fn from_str_radix( str: &str, radix: u32, ) -> Result<Overflowing<i128>, <Overflowing<i128> as Num>::FromStrRadixErr>

Convert from a string and radix (typically 2..=36). Read more
Source§

impl One for Overflowing<i128>

Source§

fn one() -> Overflowing<i128>

Returns the multiplicative identity element of Self, 1. Read more
Source§

fn set_one(&mut self)

Sets self to the multiplicative identity element of Self, 1.
Source§

fn is_one(&self) -> bool
where Self: PartialEq,

Returns true if self is equal to the multiplicative identity. Read more
Source§

impl<T> Ord for Overflowing<T>
where T: Ord,

Source§

fn cmp(&self, other: &Overflowing<T>) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl<T> PartialEq for Overflowing<T>
where T: PartialEq,

Source§

fn eq(&self, other: &Overflowing<T>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<T> PartialOrd for Overflowing<T>
where T: PartialOrd,

Source§

fn partial_cmp(&self, other: &Overflowing<T>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Rem for Overflowing<i128>

Source§

type Output = Overflowing<<i128 as Rem>::Output>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: Overflowing<i128>) -> <Overflowing<i128> as Rem>::Output

Performs the % operation. Read more
Source§

impl Semigroup for Overflowing<i128>

Source§

fn plus_equals(&mut self, rhs: &Overflowing<i128>)

The method of std::ops::AddAssign, for types that do not implement AddAssign.
Source§

impl<T> Serialize for Overflowing<T>
where T: Serialize,

Source§

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
Source§

impl Signed for Overflowing<i128>

Source§

fn abs(&self) -> Overflowing<i128>

Computes the absolute value. Read more
Source§

fn abs_sub(&self, other: &Overflowing<i128>) -> Overflowing<i128>

The positive difference of two numbers. Read more
Source§

fn signum(&self) -> Overflowing<i128>

Returns the sign of the number. Read more
Source§

fn is_positive(&self) -> bool

Returns true if the number is positive and false if the number is zero or negative.
Source§

fn is_negative(&self) -> bool

Returns true if the number is negative and false if the number is zero or positive.
Source§

impl<'a> Sub<&'a Overflowing<i128>> for Overflowing<i128>

Source§

type Output = Overflowing<i128>

The resulting type after applying the - operator.
Source§

fn sub( self, rhs: &'a Overflowing<i128>, ) -> <Overflowing<i128> as Sub<&'a Overflowing<i128>>>::Output

Performs the - operation. Read more
Source§

impl Sub for Overflowing<i128>

Source§

type Output = Overflowing<i128>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Overflowing<i128>) -> <Overflowing<i128> as Sub>::Output

Performs the - operation. Read more
Source§

impl SubAssign<&Overflowing<i128>> for Overflowing<i128>

Source§

fn sub_assign(&mut self, rhs: &Overflowing<i128>)

Performs the -= operation. Read more
Source§

impl SubAssign for Overflowing<i128>

Source§

fn sub_assign(&mut self, rhs: Overflowing<i128>)

Performs the -= operation. Read more
Source§

impl<'a> Sum<&'a Overflowing<i128>> for Overflowing<i128>

Source§

fn sum<I>(iter: I) -> Overflowing<i128>
where I: Iterator<Item = &'a Overflowing<i128>>,

Takes an iterator and generates Self from the elements by “summing up” the items.
Source§

impl Sum for Overflowing<i128>

Source§

fn sum<I>(iter: I) -> Overflowing<i128>
where I: Iterator<Item = Overflowing<i128>>,

Takes an iterator and generates Self from the elements by “summing up” the items.
Source§

impl TryFrom<Overflowing<isize>> for Overflowing<i128>

Source§

type Error = <i128 as TryFrom<isize>>::Error

The type returned in the event of a conversion error.
Source§

fn try_from( value: Overflowing<isize>, ) -> Result<Overflowing<i128>, <Overflowing<i128> as TryFrom<Overflowing<isize>>>::Error>

Performs the conversion.
Source§

impl TryFrom<Overflowing<u128>> for Overflowing<i128>

Source§

type Error = <i128 as TryFrom<u128>>::Error

The type returned in the event of a conversion error.
Source§

fn try_from( value: Overflowing<u128>, ) -> Result<Overflowing<i128>, <Overflowing<i128> as TryFrom<Overflowing<u128>>>::Error>

Performs the conversion.
Source§

impl TryFrom<Overflowing<usize>> for Overflowing<i128>

Source§

type Error = <i128 as TryFrom<usize>>::Error

The type returned in the event of a conversion error.
Source§

fn try_from( value: Overflowing<usize>, ) -> Result<Overflowing<i128>, <Overflowing<i128> as TryFrom<Overflowing<usize>>>::Error>

Performs the conversion.
Source§

impl TryFrom<isize> for Overflowing<i128>

Source§

type Error = <i128 as TryFrom<isize>>::Error

The type returned in the event of a conversion error.
Source§

fn try_from( value: isize, ) -> Result<Overflowing<i128>, <Overflowing<i128> as TryFrom<isize>>::Error>

Performs the conversion.
Source§

impl TryFrom<u128> for Overflowing<i128>

Source§

type Error = <i128 as TryFrom<u128>>::Error

The type returned in the event of a conversion error.
Source§

fn try_from( value: u128, ) -> Result<Overflowing<i128>, <Overflowing<i128> as TryFrom<u128>>::Error>

Performs the conversion.
Source§

impl TryFrom<usize> for Overflowing<i128>

Source§

type Error = <i128 as TryFrom<usize>>::Error

The type returned in the event of a conversion error.
Source§

fn try_from( value: usize, ) -> Result<Overflowing<i128>, <Overflowing<i128> as TryFrom<usize>>::Error>

Performs the conversion.
Source§

impl Zero for Overflowing<i128>

Source§

fn zero() -> Overflowing<i128>

Returns the additive identity element of Self, 0. Read more
Source§

fn is_zero(&self) -> bool

Returns true if self is equal to the additive identity.
Source§

fn set_zero(&mut self)

Sets self to the additive identity element of Self, 0.
Source§

impl<T> Copy for Overflowing<T>
where T: Copy,

Source§

impl<T> Eq for Overflowing<T>
where T: Eq,

Source§

impl<T> StructuralPartialEq for Overflowing<T>