Struct zordon::types::MulByteView[][src]

pub struct MulByteView<'a, T, E> { /* fields omitted */ }
Expand description

A mutable multi byte view for type T where the length of the view varies depending on T.

For valid types for T, check ModByteView implementations.

Implementations

impl<'a, T, E> MulByteView<'a, T, E>[src]

pub fn mut_view(arr: &'a mut [u8]) -> (Self, &'a mut [u8])[src]

Returns a MulByteView and leftover slice.

Trait Implementations

impl<'a, T, E> AddAssign<T> for MulByteView<'a, T, E> where
    MulByteView<'a, T, E>: ModMulByteView<'a, T, E>,
    T: Add + Add<Output = T>, 
[src]

fn add_assign(&mut self, rhs: T)[src]

Performs the += operation. Read more

impl<'a, T: Debug, E: Debug> Debug for MulByteView<'a, T, E>[src]

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

Formats the value using the given formatter. Read more

impl<'a, T, E> DivAssign<T> for MulByteView<'a, T, E> where
    MulByteView<'a, T, E>: ModMulByteView<'a, T, E>,
    T: Div + Div<Output = T>, 
[src]

fn div_assign(&mut self, rhs: T)[src]

Performs the /= operation. Read more

impl<'a> ModMulByteView<'a, i128, BigEnd> for MulByteView<'a, i128, BigEnd>[src]

fn val(&self) -> i128[src]

Return a copy of the underlying value T.

fn set(&mut self, v: i128)[src]

Set the underlying value to T.

impl<'a> ModMulByteView<'a, i128, LitEnd> for MulByteView<'a, i128, LitEnd>[src]

fn val(&self) -> i128[src]

Return a copy of the underlying value T.

fn set(&mut self, v: i128)[src]

Set the underlying value to T.

impl<'a> ModMulByteView<'a, i16, BigEnd> for MulByteView<'a, i16, BigEnd>[src]

fn val(&self) -> i16[src]

Return a copy of the underlying value T.

fn set(&mut self, v: i16)[src]

Set the underlying value to T.

impl<'a> ModMulByteView<'a, i16, LitEnd> for MulByteView<'a, i16, LitEnd>[src]

fn val(&self) -> i16[src]

Return a copy of the underlying value T.

fn set(&mut self, v: i16)[src]

Set the underlying value to T.

impl<'a> ModMulByteView<'a, i32, BigEnd> for MulByteView<'a, i32, BigEnd>[src]

fn val(&self) -> i32[src]

Return a copy of the underlying value T.

fn set(&mut self, v: i32)[src]

Set the underlying value to T.

impl<'a> ModMulByteView<'a, i32, LitEnd> for MulByteView<'a, i32, LitEnd>[src]

fn val(&self) -> i32[src]

Return a copy of the underlying value T.

fn set(&mut self, v: i32)[src]

Set the underlying value to T.

impl<'a> ModMulByteView<'a, i64, BigEnd> for MulByteView<'a, i64, BigEnd>[src]

fn val(&self) -> i64[src]

Return a copy of the underlying value T.

fn set(&mut self, v: i64)[src]

Set the underlying value to T.

impl<'a> ModMulByteView<'a, i64, LitEnd> for MulByteView<'a, i64, LitEnd>[src]

fn val(&self) -> i64[src]

Return a copy of the underlying value T.

fn set(&mut self, v: i64)[src]

Set the underlying value to T.

impl<'a> ModMulByteView<'a, u128, BigEnd> for MulByteView<'a, u128, BigEnd>[src]

fn val(&self) -> u128[src]

Return a copy of the underlying value T.

fn set(&mut self, v: u128)[src]

Set the underlying value to T.

impl<'a> ModMulByteView<'a, u128, LitEnd> for MulByteView<'a, u128, LitEnd>[src]

fn val(&self) -> u128[src]

Return a copy of the underlying value T.

fn set(&mut self, v: u128)[src]

Set the underlying value to T.

impl<'a> ModMulByteView<'a, u16, BigEnd> for MulByteView<'a, u16, BigEnd>[src]

fn val(&self) -> u16[src]

Return a copy of the underlying value T.

fn set(&mut self, v: u16)[src]

Set the underlying value to T.

impl<'a> ModMulByteView<'a, u16, LitEnd> for MulByteView<'a, u16, LitEnd>[src]

fn val(&self) -> u16[src]

Return a copy of the underlying value T.

fn set(&mut self, v: u16)[src]

Set the underlying value to T.

impl<'a> ModMulByteView<'a, u32, BigEnd> for MulByteView<'a, u32, BigEnd>[src]

fn val(&self) -> u32[src]

Return a copy of the underlying value T.

fn set(&mut self, v: u32)[src]

Set the underlying value to T.

impl<'a> ModMulByteView<'a, u32, LitEnd> for MulByteView<'a, u32, LitEnd>[src]

fn val(&self) -> u32[src]

Return a copy of the underlying value T.

fn set(&mut self, v: u32)[src]

Set the underlying value to T.

impl<'a> ModMulByteView<'a, u64, BigEnd> for MulByteView<'a, u64, BigEnd>[src]

fn val(&self) -> u64[src]

Return a copy of the underlying value T.

fn set(&mut self, v: u64)[src]

Set the underlying value to T.

impl<'a> ModMulByteView<'a, u64, LitEnd> for MulByteView<'a, u64, LitEnd>[src]

fn val(&self) -> u64[src]

Return a copy of the underlying value T.

fn set(&mut self, v: u64)[src]

Set the underlying value to T.

impl<'a, T, E> MulAssign<T> for MulByteView<'a, T, E> where
    MulByteView<'a, T, E>: ModMulByteView<'a, T, E>,
    T: Mul + Mul<Output = T>, 
[src]

fn mul_assign(&mut self, rhs: T)[src]

Performs the *= operation. Read more

impl<'a, T: PartialEq, E: PartialEq> PartialEq<MulByteView<'a, T, E>> for MulByteView<'a, T, E>[src]

fn eq(&self, other: &MulByteView<'a, T, E>) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &MulByteView<'a, T, E>) -> bool[src]

This method tests for !=.

impl<'a, T, E> SubAssign<T> for MulByteView<'a, T, E> where
    MulByteView<'a, T, E>: ModMulByteView<'a, T, E>,
    T: Sub + Sub<Output = T>, 
[src]

fn sub_assign(&mut self, rhs: T)[src]

Performs the -= operation. Read more

impl<'a, T, E> StructuralPartialEq for MulByteView<'a, T, E>[src]

Auto Trait Implementations

impl<'a, T, E> RefUnwindSafe for MulByteView<'a, T, E> where
    E: RefUnwindSafe,
    T: RefUnwindSafe

impl<'a, T, E> Send for MulByteView<'a, T, E> where
    E: Send,
    T: Send

impl<'a, T, E> Sync for MulByteView<'a, T, E> where
    E: Sync,
    T: Sync

impl<'a, T, E> Unpin for MulByteView<'a, T, E> where
    E: Unpin,
    T: Unpin

impl<'a, T, E> !UnwindSafe for MulByteView<'a, T, E>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.