pub struct RandomBase62Generator { /* private fields */ }Expand description
A random Base62 ID generator.
Generates short, random alphanumeric strings composed of [A-Z, a-z, 0-9]. Useful when you want compact, URL-safe random IDs without needing time-based ordering.
§Example
use rust_mcp_extra::{id_generator::RandomBase62Generator,IdGenerator};
let generator = RandomBase62Generator::new(12);
let id: String = generator.generate();
println!("Generated Base62 ID: {}", id);Implementations§
Trait Implementations§
Source§impl<T> IdGenerator<T> for RandomBase62Generator
impl<T> IdGenerator<T> for RandomBase62Generator
Auto Trait Implementations§
impl Freeze for RandomBase62Generator
impl RefUnwindSafe for RandomBase62Generator
impl Send for RandomBase62Generator
impl Sync for RandomBase62Generator
impl Unpin for RandomBase62Generator
impl UnsafeUnpin for RandomBase62Generator
impl UnwindSafe for RandomBase62Generator
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