[][src]Struct coda::num::u2

pub struct u2(pub i8);

The 2-bit unsigned integer type.

Implementations

impl u2[src]

pub const MAX: Self[src]

pub const MIN: Self[src]

impl u2[src]

pub fn min_value() -> u2[src]

pub fn max_value() -> u2[src]

pub fn wrapping_sub(self, rhs: Self) -> Self[src]

pub fn wrapping_add(self, rhs: Self) -> Self[src]

Trait Implementations

impl Add<u2> for u2[src]

type Output = u2

The resulting type after applying the + operator.

impl Binary for u2[src]

impl<'a> BitAnd<&'a u2> for u2[src]

type Output = <u2 as BitOr<u2>>::Output

The resulting type after applying the & operator.

impl<'a> BitAnd<&'a u2> for &'a u2[src]

type Output = <u2 as BitOr<u2>>::Output

The resulting type after applying the & operator.

impl BitAnd<u2> for u2[src]

type Output = u2

The resulting type after applying the & operator.

impl<'a> BitAnd<u2> for &'a u2[src]

type Output = <u2 as BitOr<u2>>::Output

The resulting type after applying the & operator.

impl BitAndAssign<u2> for u2[src]

impl<'a> BitOr<&'a u2> for u2[src]

type Output = <u2 as BitOr<u2>>::Output

The resulting type after applying the | operator.

impl<'a> BitOr<&'a u2> for &'a u2[src]

type Output = <u2 as BitOr<u2>>::Output

The resulting type after applying the | operator.

impl BitOr<u2> for u2[src]

type Output = u2

The resulting type after applying the | operator.

impl<'a> BitOr<u2> for &'a u2[src]

type Output = <u2 as BitOr<u2>>::Output

The resulting type after applying the | operator.

impl BitOrAssign<u2> for u2[src]

impl<'a> BitXor<&'a u2> for u2[src]

type Output = <u2 as BitOr<u2>>::Output

The resulting type after applying the ^ operator.

impl<'a> BitXor<&'a u2> for &'a u2[src]

type Output = <u2 as BitOr<u2>>::Output

The resulting type after applying the ^ operator.

impl BitXor<u2> for u2[src]

type Output = u2

The resulting type after applying the ^ operator.

impl<'a> BitXor<u2> for &'a u2[src]

type Output = <u2 as BitOr<u2>>::Output

The resulting type after applying the ^ operator.

impl BitXorAssign<u2> for u2[src]

impl Clone for u2[src]

impl Copy for u2[src]

impl Debug for u2[src]

impl Default for u2[src]

impl Deref for u2[src]

type Target = i8

The resulting type after dereferencing.

impl DerefMut for u2[src]

impl Display for u2[src]

impl Div<u2> for u2[src]

type Output = Self

The resulting type after applying the / operator.

impl Eq for u2[src]

impl From<i8> for u2[src]

impl Hash for u2[src]

impl Into<i8> for u2[src]

impl LowerHex for u2[src]

impl Mul<u2> for u2[src]

type Output = Self

The resulting type after applying the * operator.

impl Not for u2[src]

type Output = u2

The resulting type after applying the ! operator.

impl<'a> Not for &'a u2[src]

type Output = <u2 as Not>::Output

The resulting type after applying the ! operator.

impl Octal for u2[src]

impl Ord for u2[src]

impl PartialEq<u2> for u2[src]

impl PartialOrd<u2> for u2[src]

impl<T> Shl<T> for u2 where
    i8: Shl<T, Output = i8>, 
[src]

type Output = u2

The resulting type after applying the << operator.

impl<T> ShlAssign<T> for u2 where
    i8: ShlAssign<T>, 
[src]

impl<T> Shr<T> for u2 where
    i8: Shr<T, Output = i8>, 
[src]

type Output = u2

The resulting type after applying the >> operator.

impl<T> ShrAssign<T> for u2 where
    i8: ShrAssign<T>, 
[src]

impl Sub<u2> for u2[src]

type Output = u2

The resulting type after applying the - operator.

impl UpperHex for u2[src]

Auto Trait Implementations

impl RefUnwindSafe for u2

impl Send for u2

impl Sync for u2

impl Unpin for u2

impl UnwindSafe for u2

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.

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.