pub struct BinaryArithmetic {
pub value: [u8; 8],
}Fields§
§value: [u8; 8]Implementations§
Source§impl BinaryArithmetic
impl BinaryArithmetic
Sourcepub const ZERO: BinaryArithmetic
pub const ZERO: BinaryArithmetic
ZERO BinaryArithmetic
pub fn get_external_size(&self) -> usize
pub fn from_binary_string(b: &BinaryString) -> Self
pub fn to_binary_string(&self, len: usize) -> BinaryString
pub fn xor(&self, other: &Self) -> Self
Trait Implementations§
Source§impl Clone for BinaryArithmetic
impl Clone for BinaryArithmetic
Source§fn clone(&self) -> BinaryArithmetic
fn clone(&self) -> BinaryArithmetic
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 BinaryArithmetic
impl Debug for BinaryArithmetic
Source§impl Default for BinaryArithmetic
impl Default for BinaryArithmetic
Source§fn default() -> BinaryArithmetic
fn default() -> BinaryArithmetic
Returns the “default value” for a type. Read more
impl Copy for BinaryArithmetic
Auto Trait Implementations§
impl Freeze for BinaryArithmetic
impl RefUnwindSafe for BinaryArithmetic
impl Send for BinaryArithmetic
impl Sync for BinaryArithmetic
impl Unpin for BinaryArithmetic
impl UnwindSafe for BinaryArithmetic
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