rend 0.5.0-rc.1

Cross-platform, endian-aware primitives for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use core::fmt;

#[derive(Debug)]
pub struct ValueCheckContext {
    pub inner_name: &'static str,
    pub outer_name: &'static str,
}

impl fmt::Display for ValueCheckContext {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        write!(
            f,
            "while checking {} value of {}",
            self.inner_name, self.outer_name,
        )
    }
}