Struct binary_layout::example::icmp_packet::View[][src]

pub struct View<S> { /* fields omitted */ }

The View struct defines the FieldView API. An instance of View wraps a storage (either borrowed or owned) and allows accessors for the layout fields.

Implementations

impl<S> View<S>[src]

pub fn new(storage: S) -> Self[src]

pub fn into_storage(self) -> S[src]

pub fn into_packet_type(self) -> FieldView<S, packet_type>[src]

pub fn into_code(self) -> FieldView<S, code>[src]

pub fn into_checksum(self) -> FieldView<S, checksum>[src]

pub fn into_rest_of_header(self) -> FieldView<S, rest_of_header>[src]

pub fn into_data_section(self) -> FieldView<S, data_section>[src]

impl<S: AsRef<[u8]>> View<S>[src]

impl<S: AsMut<[u8]>> View<S>[src]

Auto Trait Implementations

impl<S> RefUnwindSafe for View<S> where
    S: RefUnwindSafe

impl<S> Send for View<S> where
    S: Send

impl<S> Sync for View<S> where
    S: Sync

impl<S> Unpin for View<S> where
    S: Unpin

impl<S> UnwindSafe for View<S> where
    S: UnwindSafe

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