Struct group_math::byte::ByteGroup
source · pub struct ByteGroup<const LAMBDA: usize>(pub [u8; LAMBDA]);Expand description
See self
Tuple Fields§
§0: [u8; LAMBDA]Trait Implementations§
source§impl<const LAMBDA: usize> AddAssign for ByteGroup<LAMBDA>
impl<const LAMBDA: usize> AddAssign for ByteGroup<LAMBDA>
source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+= operation. Read moresource§impl<const LAMBDA: usize> Group<LAMBDA> for ByteGroup<LAMBDA>
impl<const LAMBDA: usize> Group<LAMBDA> for ByteGroup<LAMBDA>
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<const LAMBDA: usize> PartialEq for ByteGroup<LAMBDA>
impl<const LAMBDA: usize> PartialEq for ByteGroup<LAMBDA>
impl<const LAMBDA: usize> Eq for ByteGroup<LAMBDA>
impl<const LAMBDA: usize> StructuralEq for ByteGroup<LAMBDA>
impl<const LAMBDA: usize> StructuralPartialEq for ByteGroup<LAMBDA>
Auto Trait Implementations§
impl<const LAMBDA: usize> RefUnwindSafe for ByteGroup<LAMBDA>
impl<const LAMBDA: usize> Send for ByteGroup<LAMBDA>
impl<const LAMBDA: usize> Sync for ByteGroup<LAMBDA>
impl<const LAMBDA: usize> Unpin for ByteGroup<LAMBDA>
impl<const LAMBDA: usize> UnwindSafe for ByteGroup<LAMBDA>
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