[−][src]Struct generic_modular::ExampleModular101
This struct is an example struct used to demonstrate what is generated by the def_modular
macro.
Do not try to use this type anywhere (including tests), because this type is only declared in cfg(rustdoc)
.
Trait Implementations
impl Modular<u16> for ExampleModular101
[src]
impl Debug for ExampleModular101
[src]
impl PartialEq<ExampleModular101> for ExampleModular101
[src]
fn eq(&self, other: &ExampleModular101) -> bool
[src]
fn ne(&self, other: &ExampleModular101) -> bool
[src]
impl Eq for ExampleModular101
[src]
impl Add<ExampleModular101> for ExampleModular101
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: Self) -> Self
[src]
impl Sub<ExampleModular101> for ExampleModular101
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: Self) -> Self
[src]
impl Mul<ExampleModular101> for ExampleModular101
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: Self) -> Self
[src]
impl Copy for ExampleModular101
[src]
impl From<u16> for ExampleModular101
[src]
Converts a number of the base type into this modular type.
Use the new
method instead for literal inputs, because the compiler canot determine
if the signed From
or the unsigned From
is intended.
impl From<i16> for ExampleModular101
[src]
Converts a number of the signed type into this modular type.
Use the new
method instead for literal inputs, because the compiler canot determine
if the signed From
or the unsigned From
is intended.
impl Clone for ExampleModular101
[src]
fn clone(&self) -> ExampleModular101
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for ExampleModular101
[src]
fn default() -> ExampleModular101
[src]
Auto Trait Implementations
Blanket Implementations
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> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[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<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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,