Unit

Type Alias Unit 

Source
pub type Unit = ();
Expand description

Provide an ident-compatible alias for the ()-type

Trait Implementations§

Source§

impl RawcodeConstSize for Unit

Source§

const SIZE: usize = 0usize

The encoded size of Self
Source§

fn size() -> usize

The encoded size of Self
Source§

impl RawcodeDecode for Unit

Source§

fn decode(buf: &[u8]) -> Result<Self, Error>

Decodes Self from buf
Source§

impl RawcodeEncode for Unit

Source§

fn encode(&self, buf: &mut [u8]) -> Result<(), Error>

Encodes self into buf