Macro assure::assure_io_le [−][src]
Assure one value is less than or equal to another value.
If true, then return Ok(true).
Otherwise, return Err(std::io::Error …).
This macro has a second form, where a custom message can be provided.
Examples
assure_io_le!(1, 2); assure_io_le!(1, 2, "message");