Struct nid::alphabet::Base62Alphabet
source · pub struct Base62Alphabet;
Expand description
Alphabet with A-Za-z0-9
symbols.
§Example
use nid::{alphabet::Base62Alphabet, Nanoid};
let id: Nanoid<21, Base62Alphabet> = Nanoid::new();
Trait Implementations§
source§impl Alphabet for Base62Alphabet
impl Alphabet for Base62Alphabet
source§const SYMBOL_LIST: &'static [u8] = b"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
const SYMBOL_LIST: &'static [u8] = b"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
The symbols that can be used in Nano ID. Symbols are represented as
u8
values.Auto Trait Implementations§
impl Freeze for Base62Alphabet
impl RefUnwindSafe for Base62Alphabet
impl Send for Base62Alphabet
impl Sync for Base62Alphabet
impl Unpin for Base62Alphabet
impl UnwindSafe for Base62Alphabet
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more