Enum cool_id_generator::Size
source · [−]pub enum Size {
Medium,
Long,
VeryLong,
}
Expand description
Size which can be cast into usize
to use as the size of the output byte array e.g.
Example
use cool_id_generator::Size;
const size: usize = Size::Medium as usize;
let byte_array: [u8; size] = [0u8; size];
Variants
Medium
The largest size (in bytes) of a Medium
ID; 1 billion combinations
Long
The largest size (in bytes) of a Long
ID; 115 billion combinations
VeryLong
The largest size (in bytes) of a VeryLong
ID; 10^15 combinations (or 2,088,136,477,473,228)
Auto Trait Implementations
impl RefUnwindSafe for Size
impl Send for Size
impl Sync for Size
impl Unpin for Size
impl UnwindSafe for Size
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more