[][src]Function dangerous::input

#[must_use = "input must be consumed"]pub const fn input(bytes: &[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