Struct group_math::int::UsizeGroup
source · pub struct UsizeGroup(pub usize);Expand description
See self
Tuple Fields§
§0: usizeTrait Implementations§
source§impl Add for UsizeGroup
impl Add for UsizeGroup
source§impl AddAssign for UsizeGroup
impl AddAssign for UsizeGroup
source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+= operation. Read moresource§impl Clone for UsizeGroup
impl Clone for UsizeGroup
source§fn clone(&self) -> UsizeGroup
fn clone(&self) -> UsizeGroup
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for UsizeGroup
impl Debug for UsizeGroup
source§impl<const LAMBDA: usize> From<UsizeGroup> for [u8; LAMBDA]
impl<const LAMBDA: usize> From<UsizeGroup> for [u8; LAMBDA]
source§fn from(value: UsizeGroup) -> Self
fn from(value: UsizeGroup) -> Self
Converts to this type from the input type.
source§impl<const LAMBDA: usize> Group<LAMBDA> for UsizeGroup
impl<const LAMBDA: usize> Group<LAMBDA> for UsizeGroup
source§fn add_inverse(self) -> Self
fn add_inverse(self) -> Self
Additive inverse in the group, e.g.,
-x for x in the integer groupsource§fn add_inverse_if(self, t: bool) -> Self
fn add_inverse_if(self, t: bool) -> Self
Helper to get the additive inverse if true.
Used for expressions like
$(-1)^n x$, in which t can be computed from n.source§impl PartialEq for UsizeGroup
impl PartialEq for UsizeGroup
source§fn eq(&self, other: &UsizeGroup) -> bool
fn eq(&self, other: &UsizeGroup) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for UsizeGroup
impl StructuralEq for UsizeGroup
impl StructuralPartialEq for UsizeGroup
Auto Trait Implementations§
impl RefUnwindSafe for UsizeGroup
impl Send for UsizeGroup
impl Sync for UsizeGroup
impl Unpin for UsizeGroup
impl UnwindSafe for UsizeGroup
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