Struct tarrasque::View[][src]

pub struct View<'a, T, P> where
    T: Extract<'a, P> + Span,
    P: Copy
{ /* fields omitted */ }

A slice of bytes containing values that span a fixed number of bytes.

Methods

impl<'a, T, P> View<'a, T, P> where
    T: Extract<'a, P> + Span,
    P: Copy
[src]

Returns the bytes in this slice.

Returns the number of values in this slice.

Returns whether there are no values in this slice.

Returns the bytes for the value at the supplied index in this slice.

Returns the value at the supplied index in this slice.

Important traits for ViewIter<'a, T, P>

Returns an iterator over the values in this slice.

Binary searches the values in this slice for the supplied value.

Binary searches the values in this slice using the supplied comparator function.

Binary searches the values in this slice using the supplied key extraction function.

Binary searches the value bytes in this slice for the supplied value.

Binary searches the value bytes in this slice using the supplied comparator function.

Binary searches the value bytes in this slice using the supplied key extraction function.

Trait Implementations

impl<'a, T: Copy, P: Copy> Copy for View<'a, T, P> where
    T: Extract<'a, P> + Span,
    P: Copy
[src]

impl<'a, T: Clone, P: Clone> Clone for View<'a, T, P> where
    T: Extract<'a, P> + Span,
    P: Copy
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a, T: Debug, P: Debug> Debug for View<'a, T, P> where
    T: Extract<'a, P> + Span,
    P: Copy
[src]

Formats the value using the given formatter. Read more

impl<'a, T: PartialEq, P: PartialEq> PartialEq for View<'a, T, P> where
    T: Extract<'a, P> + Span,
    P: Copy
[src]

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

This method tests for !=.

impl<'a, T: Eq, P: Eq> Eq for View<'a, T, P> where
    T: Extract<'a, P> + Span,
    P: Copy
[src]

impl<'a, T, P> Extract<'a, (usize, P)> for View<'a, T, P> where
    T: Extract<'a, P> + Span,
    P: Copy
[src]

Extracts a value of this type from the supplied stream of bytes. Read more

Auto Trait Implementations

impl<'a, T, P> !Send for View<'a, T, P>

impl<'a, T, P> !Sync for View<'a, T, P>