pub struct UsizeGroup(pub usize);
Expand description
See self
Tuple Fields§
§0: usize
Trait 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 duplicate 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
impl Eq for UsizeGroup
impl StructuralPartialEq for UsizeGroup
Auto Trait Implementations§
impl Freeze for UsizeGroup
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