flat_message 0.2.1

Zero-copy, schema-less serialization and deserialization fast library for Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pub trait FlagsSupport<T>
where
    T: Copy + Sized,
    Self: Sized,
{
    fn from_value(value: T) -> Option<Self>;
    fn to_value(&self) -> T;
    fn any_set(&self, flag: Self) -> bool;
    fn all_set(&self, flag: Self) -> bool;
    fn is_empty(&self) -> bool;
    fn set(&mut self, flag: Self);
    fn unset(&mut self, flag: Self);
    fn toggle(&mut self, flag: Self);
    fn clear(&mut self);
}