brk_types 0.3.0-alpha.6

Structs used throughout BRK
Documentation
use byteview::ByteView;

#[derive(Debug, Clone)]
pub struct Unit;

impl From<ByteView> for Unit {
    #[inline(always)]
    fn from(_: ByteView) -> Self {
        Self
    }
}
impl From<Unit> for ByteView {
    #[inline(always)]
    fn from(_: Unit) -> Self {
        Self::new(&[])
    }
}
impl From<&Unit> for ByteView {
    #[inline(always)]
    fn from(_: &Unit) -> Self {
        Self::new(&[])
    }
}