pub struct Words {
pub entries: Vec<Entry>,
pub listeners: Listeners,
pub ladder: Ladder,
pub style: Vec<Ranked>,
pub technique: Vec<Ranked>,
}Expand description
The parsed word dictionary.
Fields§
§entries: Vec<Entry>Every entry, axis by axis in file order.
listeners: ListenersThe listener numbers.
ladder: LadderThe intensity ladder.
style: Vec<Ranked>The style words in rank order.
technique: Vec<Ranked>The technique words in rank order.
Implementations§
Source§impl Words
impl Words
Sourcepub fn senses(&self, word: &str) -> Vec<&Entry>
pub fn senses(&self, word: &str) -> Vec<&Entry>
The senses of a word, found by its lead word or an alias.
Sourcepub fn pick(&self, word: &str, role: Option<&str>) -> Option<&Entry>
pub fn pick(&self, word: &str, role: Option<&str>) -> Option<&Entry>
The sense to take: the one sense that lists role, else the
default.
Sourcepub fn question(&self, word: &str) -> Option<String>
pub fn question(&self, word: &str) -> Option<String>
The question that picks a sense, such as “Warm: more low-mid weight (default), duller highs or both?”. None for a word with one sense.
Sourcepub fn reverb(&self, word: &str) -> Option<&ReverbWord>
pub fn reverb(&self, word: &str) -> Option<&ReverbWord>
The listener reverb numbers of a word.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Words
impl RefUnwindSafe for Words
impl Send for Words
impl Sync for Words
impl Unpin for Words
impl UnsafeUnpin for Words
impl UnwindSafe for Words
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more