pub struct VerbDefinition {
pub loc: FileLocation,
pub verb: Token,
pub preposition: Token,
}
Expand description
Verb definition.
Fields§
§loc: FileLocation
Complete verb definition’s textual location.
verb: Token
Verb of this verb-preposition pair.
preposition: Token
Preposition of this verb-preposition pair.
Trait Implementations§
Source§impl Clone for VerbDefinition
impl Clone for VerbDefinition
Source§fn clone(&self) -> VerbDefinition
fn clone(&self) -> VerbDefinition
Returns a duplicate of the value. Read more
1.0.0 · 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 VerbDefinition
impl Debug for VerbDefinition
Source§impl Display for VerbDefinition
impl Display for VerbDefinition
Source§impl<'a> FetchTarget<'a, VerbDefinition> for VerbDefinitionTarget
impl<'a> FetchTarget<'a, VerbDefinition> for VerbDefinitionTarget
Source§fn fetch_values(
&self,
spec: &'a Specification,
) -> Result<&'a [VerbDefinition], TargetError<Self>>
fn fetch_values( &self, spec: &'a Specification, ) -> Result<&'a [VerbDefinition], TargetError<Self>>
Fetch the map reference containing the targeted item.
Source§fn fetch_values_mut(
&self,
spec: &'a mut Specification,
) -> Result<&'a mut [VerbDefinition], TargetError<Self>>
fn fetch_values_mut( &self, spec: &'a mut Specification, ) -> Result<&'a mut [VerbDefinition], TargetError<Self>>
Fetch the mutable map reference containing the targeted item.
Source§fn fetch(&self, spec: &'a Specification) -> Result<&'a V, TargetError<Self>>
fn fetch(&self, spec: &'a Specification) -> Result<&'a V, TargetError<Self>>
Fetch a reference to the target from the specification.
Source§fn fetch_mut(
&self,
spec: &'a mut Specification,
) -> Result<&'a mut V, TargetError<Self>>
fn fetch_mut( &self, spec: &'a mut Specification, ) -> Result<&'a mut V, TargetError<Self>>
Fetch a mutable reference to the target from the specification.
Source§impl PartialEq for VerbDefinition
impl PartialEq for VerbDefinition
impl StructuralPartialEq for VerbDefinition
Auto Trait Implementations§
impl Freeze for VerbDefinition
impl RefUnwindSafe for VerbDefinition
impl !Send for VerbDefinition
impl !Sync for VerbDefinition
impl Unpin for VerbDefinition
impl UnwindSafe for VerbDefinition
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