[][src]Struct cbor_tools::ZeroTo23

pub struct ZeroTo23(_);

An integer value in the range 0 to 23, inclusive.

Implementations

impl ZeroTo23[src]

pub fn new(x: u8) -> Self[src]

Create a new ZeroTo23.

Will panic if the input is outside the expected range.

Trait Implementations

impl Clone for ZeroTo23[src]

impl Copy for ZeroTo23[src]

impl Deref for ZeroTo23[src]

type Target = u8

The resulting type after dereferencing.

pub fn deref(&self) -> &Self::Target[src]

Extract the integer value.

Will panic if the stored value is outside the expected range.

impl PartialEq<ZeroTo23> for ZeroTo23[src]

impl StructuralPartialEq for ZeroTo23[src]

Auto Trait Implementations

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, 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.