pub struct RootNode {
pub node: TreeNode,
}
Expand description
The root of a command tree.
Fields§
§node: TreeNode
TreeNode
data.
Implementations§
Trait Implementations§
Source§impl NodeOps for RootNode
RootNode
does not want to perform any actual NodeOps
as these
operations should only be invoked by the Parser
on successor nodes.
impl NodeOps for RootNode
RootNode
does not want to perform any actual NodeOps
as these
operations should only be invoked by the Parser
on successor nodes.
Source§fn complete<'text>(&self, _token: Option<Token<'text>>) -> Completion<'text>
fn complete<'text>(&self, _token: Option<Token<'text>>) -> Completion<'text>
A RootNode
can not be completed.
Source§fn matches(&self, _parser: &Parser<'_>, _token: Token<'_>) -> bool
fn matches(&self, _parser: &Parser<'_>, _token: Token<'_>) -> bool
A RootNode
can not be matched.
Auto Trait Implementations§
impl Freeze for RootNode
impl RefUnwindSafe for RootNode
impl !Send for RootNode
impl !Sync for RootNode
impl Unpin for RootNode
impl UnwindSafe for RootNode
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