pub struct WordAllocator { /* private fields */ }Expand description
An IdAllocator over a fixed list of words.
It hands the words out in list order, moving on past each one it leases,
so a word just released is the last to come back. Default uses a
built-in list of 2048 common English words.
Implementations§
Source§impl WordAllocator
impl WordAllocator
Trait Implementations§
Source§impl Debug for WordAllocator
impl Debug for WordAllocator
Source§impl Default for WordAllocator
impl Default for WordAllocator
Auto Trait Implementations§
impl !Freeze for WordAllocator
impl Forget for WordAllocator
impl RefUnwindSafe for WordAllocator
impl Send for WordAllocator
impl Sync for WordAllocator
impl Unpin for WordAllocator
impl UnsafeUnpin for WordAllocator
impl UnwindSafe for WordAllocator
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