Struct untrusted::Input [−][src]
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.
Intentionally avoids implementing PartialEq
and Eq
to avoid implicit
non-constant-time comparisons.
Implementations
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.
Trait Implementations
The value is intentionally omitted from the output to avoid leaking secrets.