[][src]Function dangerous::input

#[must_use = "input must be consumed"]pub fn input(slice: &[u8]) -> &Input

Creates a new Input from a byte slice.

It is recommended to use this directly from the crate as dangerous::input(), not as an import via use as shown below, as you lose the discoverability.

use dangerous::input; // bad

dangerous::input(b"hello"); // do this instead