pub struct TupleElementsOptHandle(/* private fields */);Trait Implementations§
Source§impl Clone for TupleElementsOptHandle
impl Clone for TupleElementsOptHandle
Source§fn clone(&self) -> TupleElementsOptHandle
fn clone(&self) -> TupleElementsOptHandle
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 TupleElementsOptHandle
impl Debug for TupleElementsOptHandle
Source§impl Hash for TupleElementsOptHandle
impl Hash for TupleElementsOptHandle
Source§impl NonTerminalHandle for TupleElementsOptHandle
impl NonTerminalHandle for TupleElementsOptHandle
Source§type View = Option<TupleElementsTailHandle>
type View = Option<TupleElementsTailHandle>
The type of the view for this non-terminal.
fn new_with_visit<F, E>(
index: CstNodeId,
tree: &F,
visit_ignored: &mut impl BuiltinTerminalVisitor<E, F>,
) -> Result<TupleElementsOptHandle, ViewConstructionError<TerminalKind, NonTerminalKind, E>>where
F: CstFacade,
Source§fn kind(&self) -> NonTerminalKind
fn kind(&self) -> NonTerminalKind
Get the kind of the non-terminal.
Source§fn get_view_with_visit<'v, F, V, O, E>(
&self,
tree: &F,
visit: impl FnMut(<TupleElementsOptHandle as NonTerminalHandle>::View, &'v mut V) -> (O, &'v mut V),
visit_ignored: &'v mut V,
) -> Result<O, ViewConstructionError<TerminalKind, NonTerminalKind, E>>where
F: CstFacade,
V: BuiltinTerminalVisitor<E, F>,
fn get_view_with_visit<'v, F, V, O, E>(
&self,
tree: &F,
visit: impl FnMut(<TupleElementsOptHandle as NonTerminalHandle>::View, &'v mut V) -> (O, &'v mut V),
visit_ignored: &'v mut V,
) -> Result<O, ViewConstructionError<TerminalKind, NonTerminalKind, E>>where
F: CstFacade,
V: BuiltinTerminalVisitor<E, F>,
Get the view of the non-terminal.
Source§fn new<F>(
index: CstNodeId,
tree: &F,
) -> Result<Self, ViewConstructionError<TerminalKind, NonTerminalKind>>where
F: CstFacade,
fn new<F>(
index: CstNodeId,
tree: &F,
) -> Result<Self, ViewConstructionError<TerminalKind, NonTerminalKind>>where
F: CstFacade,
Create a new non-terminal handle from a node.
Source§fn get_view<C>(
&self,
tree: &C,
) -> Result<Self::View, ViewConstructionError<TerminalKind, NonTerminalKind>>where
C: CstFacade,
fn get_view<C>(
&self,
tree: &C,
) -> Result<Self::View, ViewConstructionError<TerminalKind, NonTerminalKind>>where
C: CstFacade,
Get the view of the non-terminal.
Source§impl Ord for TupleElementsOptHandle
impl Ord for TupleElementsOptHandle
Source§fn cmp(&self, other: &TupleElementsOptHandle) -> Ordering
fn cmp(&self, other: &TupleElementsOptHandle) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TupleElementsOptHandle
impl PartialEq for TupleElementsOptHandle
Source§impl PartialOrd for TupleElementsOptHandle
impl PartialOrd for TupleElementsOptHandle
impl Copy for TupleElementsOptHandle
impl Eq for TupleElementsOptHandle
impl StructuralPartialEq for TupleElementsOptHandle
Auto Trait Implementations§
impl Freeze for TupleElementsOptHandle
impl RefUnwindSafe for TupleElementsOptHandle
impl Send for TupleElementsOptHandle
impl Sync for TupleElementsOptHandle
impl Unpin for TupleElementsOptHandle
impl UnwindSafe for TupleElementsOptHandle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.