Struct Rem

Source
pub struct Rem<A: Moment, B: Moment, O: Moment>(pub A, pub B, _);
Expand description

Get the remainder of dividing one Moment by another.

Tuple Fields§

§0: A§1: B

Implementations§

Source§

impl<A, B, O> Rem<A, B, O>
where A: Moment, B: Moment, O: Moment, A::Value: Rem<B::Value, Output = O>,

Source

pub fn new(a: A, b: B) -> Self

Create a new Rem struct.

Trait Implementations§

Source§

impl<L0, R0, L1, R1, O> Add<R1> for Rem<L0, R0, L1>
where L0: Moment, R0: Moment, L1: Moment + Add<R1::Value, Output = O>, R1: Moment, O: Moment, L0::Value: Rem<R0::Value, Output = L1>,

Source§

type Output = Add<Rem<L0, R0, L1>, R1, O>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: R1) -> Self::Output

Performs the + operation. Read more
Source§

impl<A: Clone + Moment, B: Clone + Moment, O: Clone + Moment> Clone for Rem<A, B, O>

Source§

fn clone(&self) -> Rem<A, B, O>

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<L0, R0, L1, R1, O> Div<R1> for Rem<L0, R0, L1>
where L0: Moment, R0: Moment, L1: Moment + Div<R1::Value, Output = O>, R1: Moment, O: Moment, L0::Value: Rem<R0::Value, Output = L1>,

Source§

type Output = Div<Rem<L0, R0, L1>, R1, O>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: R1) -> Self::Output

Performs the / operation. Read more
Source§

impl<A, B, O> Moment for Rem<A, B, O>
where A: Moment, B: Moment, O: Moment, A::Value: Rem<B::Value, Output = O>,

Source§

type Value = O

The type of value that this Moment resolves to. Read more
Source§

fn resolve<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = Self::Value> + Send + 'async_trait>>
where Self: 'async_trait,

Resolve this Moment into its value. Read more
Source§

impl<L0, R0, L1, R1, O> Mul<R1> for Rem<L0, R0, L1>
where L0: Moment, R0: Moment, L1: Moment + Mul<R1::Value, Output = O>, R1: Moment, O: Moment, L0::Value: Rem<R0::Value, Output = L1>,

Source§

type Output = Mul<Rem<L0, R0, L1>, R1, O>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: R1) -> Self::Output

Performs the * operation. Read more
Source§

impl<L0, R0, L1, R1, O> Rem<R1> for Rem<L0, R0, L1>
where L0: Moment, R0: Moment, L1: Moment + Rem<R1::Value, Output = O>, R1: Moment, O: Moment, L0::Value: Rem<R0::Value, Output = L1>,

Source§

type Output = Rem<Rem<L0, R0, L1>, R1, O>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: R1) -> Self::Output

Performs the % operation. Read more
Source§

impl<L0, R0, L1, R1, O> Sub<R1> for Rem<L0, R0, L1>
where L0: Moment, R0: Moment, L1: Moment + Sub<R1::Value, Output = O>, R1: Moment, O: Moment, L0::Value: Rem<R0::Value, Output = L1>,

Source§

type Output = Sub<Rem<L0, R0, L1>, R1, O>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: R1) -> Self::Output

Performs the - operation. Read more

Auto Trait Implementations§

§

impl<A, B, O> Freeze for Rem<A, B, O>
where A: Freeze, B: Freeze,

§

impl<A, B, O> RefUnwindSafe for Rem<A, B, O>

§

impl<A, B, O> Send for Rem<A, B, O>

§

impl<A, B, O> Sync for Rem<A, B, O>

§

impl<A, B, O> Unpin for Rem<A, B, O>
where A: Unpin, B: Unpin, O: Unpin,

§

impl<A, B, O> UnwindSafe for Rem<A, B, O>
where A: UnwindSafe, B: UnwindSafe, O: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<I, O> AsConvert<O> for I
where I: Moment, O: Moment, <I as Moment>::Value: Into<O>,

Source§

fn to_convert(self) -> Convert<Self, O>

Create a Convert struct from this Moment.
Source§

impl<I, O> AsTryConvert<O> for I
where I: Moment, O: Moment, <I as Moment>::Value: TryInto<O>,

Source§

fn to_try_convert(self) -> TryConvert<Self, O>

Create a TryConvert struct from this Moment.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

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

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

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

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

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

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.