pub struct NameScale { /* private fields */ }Expand description
The naming scale: where this pool’s terciles actually fall.
Fit on the bank the names will be shown against, so the alphabet stays populated whatever the pool looks like — see the module doc for why fixed thresholds do not.
Implementations§
Source§impl NameScale
impl NameScale
Sourcepub fn fit<'a>(pool: impl Iterator<Item = &'a Features> + Clone) -> Self
pub fn fit<'a>(pool: impl Iterator<Item = &'a Features> + Clone) -> Self
Fit terciles from the pool the names will be shown against.
Sourcepub fn name(&self, f: &Features) -> String
pub fn name(&self, f: &Features) -> String
<character> <role> for one candidate — e.g. Bright Pluck,
Noisy Wash, Warm Drone, Glass Lead.
Not unique on its own; claim_name makes a set of them distinct.
Trait Implementations§
impl Copy for NameScale
Auto Trait Implementations§
impl Freeze for NameScale
impl RefUnwindSafe for NameScale
impl Send for NameScale
impl Sync for NameScale
impl Unpin for NameScale
impl UnsafeUnpin for NameScale
impl UnwindSafe for NameScale
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