pub struct Input<'a> { /* fields omitted */ }
Expand description
A wrapper around &'a [u8]
that helps in writing panic-free code.
No methods of Input
will ever panic.
Construct a new Input
for the given input bytes
.
Returns true
if the input is empty and false otherwise.
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.
Access the input as a slice so it can be processed by functions that
are not written using the Input/Reader framework.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.