Trait canonical::Ident[][src]

pub trait Ident: 'static + Default + AsRef<[u8]> + AsMut<[u8]> + Clone + Eq + Copy + Hash + Debug {
    type Builder: IdBuilder<Self>;
    fn from_bytes(bytes: &[u8]) -> Self { ... }
}

Restrictions on types acting as identifiers

Associated Types

type Builder: IdBuilder<Self>[src]

Takes bytes to produce an identifier

Loading content...

Provided methods

fn from_bytes(bytes: &[u8]) -> Self[src]

Creates an identifier from a byte slice

Loading content...

Implementors

impl Ident for Id32[src]

type Builder = Id32Builder

Loading content...