[−][src]Crate dangerous
Safely and explicitly parse untrusted aka dangerous
data.
Basic usage
use dangerous::Invalid; let input = dangerous::input(b"hello"); let result: Result<_, Invalid> = input.read_partial(|r| { r.read_u8() }); assert_eq!(result, Ok((b'h', dangerous::input(b"ello"))));
Modules
display | Display support. |
error | Error support. |
Structs
Expected | A catch-all error for all expected errors supported in this crate. |
Fatal |
|
Input |
|
Invalid |
|
Reader | A |
Traits
Error | Convenience trait requiring |
FromContext | Implemented for errors that collect |
FromExpected | Convenience trait requiring |
ToRetryRequirement | Implemented for errors that return a |
Functions
input | Creates a new |