pub struct ElementList<'db, T: TypedSyntaxNode<'db>, const STEP: usize> {
pub node: SyntaxNode<'db>,
/* private fields */
}Fields§
§node: SyntaxNode<'db>Implementations§
Source§impl<'db, T: TypedSyntaxNode<'db>, const STEP: usize> ElementList<'db, T, STEP>
impl<'db, T: TypedSyntaxNode<'db>, const STEP: usize> ElementList<'db, T, STEP>
pub fn new(node: SyntaxNode<'db>) -> Self
Source§impl<'db, T: TypedSyntaxNode<'db>> ElementList<'db, T, 1>
impl<'db, T: TypedSyntaxNode<'db>> ElementList<'db, T, 1>
pub fn elements_vec(&self, db: &'db dyn Database) -> Vec<T>
pub fn elements<'a: 'db>( &self, db: &'db dyn Database, ) -> impl ExactSizeIterator<Item = T> + DoubleEndedIterator + use<'db, T>
pub fn has_tail(&self, _db: &dyn Database) -> bool
Source§impl<'db, T: TypedSyntaxNode<'db>> ElementList<'db, T, 2>
impl<'db, T: TypedSyntaxNode<'db>> ElementList<'db, T, 2>
pub fn elements_vec(&self, db: &'db dyn Database) -> Vec<T>
pub fn elements( &self, db: &'db dyn Database, ) -> impl ExactSizeIterator<Item = T> + DoubleEndedIterator + use<'db, T>
pub fn has_tail(&self, db: &dyn Database) -> bool
Trait Implementations§
Source§impl<'db, T: Clone + TypedSyntaxNode<'db>, const STEP: usize> Clone for ElementList<'db, T, STEP>
impl<'db, T: Clone + TypedSyntaxNode<'db>, const STEP: usize> Clone for ElementList<'db, T, STEP>
Source§fn clone(&self) -> ElementList<'db, T, STEP>
fn clone(&self) -> ElementList<'db, T, STEP>
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<'db, T: Debug + TypedSyntaxNode<'db>, const STEP: usize> Debug for ElementList<'db, T, STEP>
impl<'db, T: Debug + TypedSyntaxNode<'db>, const STEP: usize> Debug for ElementList<'db, T, STEP>
Source§impl<'db, T: Hash + TypedSyntaxNode<'db>, const STEP: usize> Hash for ElementList<'db, T, STEP>
impl<'db, T: Hash + TypedSyntaxNode<'db>, const STEP: usize> Hash for ElementList<'db, T, STEP>
Source§impl<'db, T: PartialEq + TypedSyntaxNode<'db>, const STEP: usize> PartialEq for ElementList<'db, T, STEP>
impl<'db, T: PartialEq + TypedSyntaxNode<'db>, const STEP: usize> PartialEq for ElementList<'db, T, STEP>
Source§impl<'db, T: TypedSyntaxNode<'db>, const STEP: usize> Update for ElementList<'db, T, STEP>
impl<'db, T: TypedSyntaxNode<'db>, const STEP: usize> Update for ElementList<'db, T, STEP>
impl<'db, T: Eq + TypedSyntaxNode<'db>, const STEP: usize> Eq for ElementList<'db, T, STEP>
impl<'db, T: TypedSyntaxNode<'db>, const STEP: usize> StructuralPartialEq for ElementList<'db, T, STEP>
Auto Trait Implementations§
impl<'db, T, const STEP: usize> Freeze for ElementList<'db, T, STEP>
impl<'db, T, const STEP: usize> RefUnwindSafe for ElementList<'db, T, STEP>where
T: RefUnwindSafe,
impl<'db, T, const STEP: usize> Send for ElementList<'db, T, STEP>where
T: Send,
impl<'db, T, const STEP: usize> Sync for ElementList<'db, T, STEP>where
T: Sync,
impl<'db, T, const STEP: usize> Unpin for ElementList<'db, T, STEP>where
T: Unpin,
impl<'db, T, const STEP: usize> UnwindSafe for ElementList<'db, T, STEP>where
T: UnwindSafe,
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<'db, T> DebugDbUpcast<'db, T> for Twhere
T: ?Sized,
impl<'db, T> DebugDbUpcast<'db, T> for Twhere
T: ?Sized,
fn debug_db_upcast(&'db self) -> &'db T
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more