pub struct DeclarativeView<'a> {
pub name: &'a str,
pub args: &'a [ArgumentSlot],
}Expand description
A read-only view of a declarative command node for use in rule matching.
Fields§
§name: &'a strThe command name without the leading backslash.
args: &'a [ArgumentSlot]The explicit argument slots parsed for this command.
Trait Implementations§
Source§impl<'a> Clone for DeclarativeView<'a>
impl<'a> Clone for DeclarativeView<'a>
Source§fn clone(&self) -> DeclarativeView<'a>
fn clone(&self) -> DeclarativeView<'a>
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 moreimpl<'a> Copy for DeclarativeView<'a>
Auto Trait Implementations§
impl<'a> Freeze for DeclarativeView<'a>
impl<'a> RefUnwindSafe for DeclarativeView<'a>
impl<'a> Send for DeclarativeView<'a>
impl<'a> Sync for DeclarativeView<'a>
impl<'a> Unpin for DeclarativeView<'a>
impl<'a> UnsafeUnpin for DeclarativeView<'a>
impl<'a> UnwindSafe for DeclarativeView<'a>
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