[][src]Struct http_signatures::Input

pub struct Input<'a> { /* fields omitted */ }

A wrapper around &'a [u8] that helps in writing panic-free code.

No methods of Input will ever panic.

Methods

impl<'a> Input<'a>
[src]

Construct a new Input for the given input bytes.

Returns true if the input is empty and false otherwise.

Returns an iterator over the input.

Returns the length of the Input.

Calls read with the given input as a Reader, ensuring that read consumed the entire input. If read does not consume the entire input, incomplete_read is returned.

Like read_all, except taking an FnMut.

Access the input as a slice so it can be processed by functions that are not written using the Input/Reader framework.

Trait Implementations

impl<'a> Copy for Input<'a>
[src]

impl<'a> Clone for Input<'a>
[src]

Performs copy-assignment from source. Read more

impl<'a, 'b> PartialEq<Input<'b>> for Input<'a>
[src]

This method tests for !=.

impl<'a, 'b> PartialEq<&'b [u8]> for Input<'a>
[src]

This method tests for !=.

impl<'a> Eq for Input<'a>
[src]

impl<'a> Debug for Input<'a>
[src]

Auto Trait Implementations

impl<'a> Send for Input<'a>

impl<'a> Sync for Input<'a>

Blanket Implementations

impl<T> From for T
[src]

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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