Skip to main content

MpMutBigEndianUIntByteSlice

Struct MpMutBigEndianUIntByteSlice 

Source
pub struct MpMutBigEndianUIntByteSlice<'a> { /* private fields */ }

Implementations§

Source§

impl<'a> MpMutBigEndianUIntByteSlice<'a>

Source

pub fn from_bytes(bytes: &'a mut [u8]) -> Self

Source

pub fn as_bytes<'b>(&'b self) -> &'b [u8]

Source

pub fn as_bytes_mut<'b>(&'b mut self) -> &'b mut [u8]

Trait Implementations§

Source§

impl<'a, 'b> From<&'a MpMutBigEndianUIntByteSlice<'b>> for &'a [u8]

Source§

fn from(value: &'a MpMutBigEndianUIntByteSlice<'b>) -> Self

Converts to this type from the input type.
Source§

impl<'a, 'b> From<&'a MpMutBigEndianUIntByteSlice<'b>> for MpBigEndianUIntByteSlice<'a>

Source§

fn from(value: &'a MpMutBigEndianUIntByteSlice<'b>) -> Self

Converts to this type from the input type.
Source§

impl<'a, 'b> From<&'a mut MpMutBigEndianUIntByteSlice<'b>> for &'a mut [u8]

Source§

fn from(value: &'a mut MpMutBigEndianUIntByteSlice<'b>) -> Self

Converts to this type from the input type.
Source§

impl<'a> LowerHex for MpMutBigEndianUIntByteSlice<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> MpMutUInt for MpMutBigEndianUIntByteSlice<'a>

Source§

fn store_l_full(&mut self, i: usize, value: LimbType)

Source§

fn store_l(&mut self, i: usize, value: LimbType)

Source§

fn clear_bytes_above(&mut self, begin: usize)

Source§

fn clear_bytes_below(&mut self, end: usize)

Source§

fn clear_bytes_above_cond(&mut self, begin: usize, cond: LimbChoice)

Source§

fn copy_from<S: MpUIntCommon>(&mut self, src: &S)

Source§

fn copy_from_cond<S: MpUIntCommon>(&mut self, src: &S, cond: LimbChoice)

Source§

fn set_bit_to(&mut self, pos: usize, val: bool)

Source§

fn set_to_u8(&mut self, value: u8)

Source§

fn set_to_u16(&mut self, value: u16)

Source§

fn set_to_u32(&mut self, value: u32)

Source§

fn set_to_u64(&mut self, value: u64)

Source§

impl<'a> MpMutUIntSlice for MpMutBigEndianUIntByteSlice<'a>

Source§

fn coerce_lifetime(&mut self) -> Self::SelfT<'_>

Source§

fn shrink_to(&mut self, nbytes: usize) -> Self::SelfT<'_>

Source§

impl<'a> MpUIntCommon for MpMutBigEndianUIntByteSlice<'a>

Source§

impl<'a> MpUIntSliceCommon for MpMutBigEndianUIntByteSlice<'a>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.