Struct goodname::Enumerator
source · [−]pub struct Enumerator<'a> { /* private fields */ }
Expand description
Enumerator of name candidates that are acronyms of an input text.
Implementations
sourceimpl<'a> Enumerator<'a>
impl<'a> Enumerator<'a>
sourcepub fn prefix_len(self, prefix_len: usize) -> Result<Self>
pub fn prefix_len(self, prefix_len: usize) -> Result<Self>
Specifies the maximum number of arbitrary prefix letters to allow for generating recursive acronyms.
sourcepub fn all_subsequences(&self) -> Result<Vec<Match>>
pub fn all_subsequences(&self) -> Result<Vec<Match>>
Generates name candidates.
sourcepub fn format_match(&self, m: &Match) -> (String, String)
pub fn format_match(&self, m: &Match) -> (String, String)
Returns the formatted name candidate and description.
Auto Trait Implementations
impl<'a> RefUnwindSafe for Enumerator<'a>
impl<'a> Send for Enumerator<'a>
impl<'a> Sync for Enumerator<'a>
impl<'a> Unpin for Enumerator<'a>
impl<'a> UnwindSafe for Enumerator<'a>
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