Struct nid::alphabet::Base64UrlAlphabet
source · pub struct Base64UrlAlphabet;
Expand description
Alphabet with A-Za-z0-9_-
symbols. This is the default alphabet used in Nano ID.
§Example
use nid::{alphabet::Base64UrlAlphabet, Nanoid};
let id: Nanoid<21, Base64UrlAlphabet> = Nanoid::new();
Trait Implementations§
source§impl Alphabet for Base64UrlAlphabet
impl Alphabet for Base64UrlAlphabet
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 Base64UrlAlphabet
impl RefUnwindSafe for Base64UrlAlphabet
impl Send for Base64UrlAlphabet
impl Sync for Base64UrlAlphabet
impl Unpin for Base64UrlAlphabet
impl UnwindSafe for Base64UrlAlphabet
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