pub struct Vocabulary {
pub variables: Vec<Variable>,
pub events: Vec<Event>,
pub phrases: Vec<Phrase>,
}Fields§
§variables: Vec<Variable>§events: Vec<Event>§phrases: Vec<Phrase>Implementations§
Source§impl Vocabulary
impl Vocabulary
pub fn var(&self, id: VarId) -> &Variable
pub fn event(&self, id: EventId) -> &Event
pub fn find_var(&self, subject: &str) -> Option<&Variable>
pub fn phrase(&self, id: PhraseId) -> &Phrase
pub fn find_event(&self, phrase: &str) -> Option<&Event>
Trait Implementations§
Source§impl Clone for Vocabulary
impl Clone for Vocabulary
Source§fn clone(&self) -> Vocabulary
fn clone(&self) -> Vocabulary
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Vocabulary
impl Debug for Vocabulary
Source§impl Default for Vocabulary
impl Default for Vocabulary
Source§fn default() -> Vocabulary
fn default() -> Vocabulary
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Vocabulary
impl RefUnwindSafe for Vocabulary
impl Send for Vocabulary
impl Sync for Vocabulary
impl Unpin for Vocabulary
impl UnsafeUnpin for Vocabulary
impl UnwindSafe for Vocabulary
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