Struct biome_rowan::syntax::SyntaxList
source · pub struct SyntaxList<L: Language> { /* private fields */ }Expand description
A list of SyntaxNodes and/or SyntaxTokens
Implementations§
source§impl<L: Language> SyntaxList<L>
impl<L: Language> SyntaxList<L>
pub fn is_empty(&self) -> bool
pub fn first(&self) -> Option<SyntaxSlot<L>>
pub fn last(&self) -> Option<SyntaxSlot<L>>
pub fn node(&self) -> &SyntaxNode<L>
pub fn into_node(self) -> SyntaxNode<L>
Trait Implementations§
source§impl<L: Clone + Language> Clone for SyntaxList<L>
impl<L: Clone + Language> Clone for SyntaxList<L>
source§fn clone(&self) -> SyntaxList<L>
fn clone(&self) -> SyntaxList<L>
Returns a copy 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<L: Language> IntoIterator for &SyntaxList<L>
impl<L: Language> IntoIterator for &SyntaxList<L>
source§impl<L: Language> IntoIterator for SyntaxList<L>
impl<L: Language> IntoIterator for SyntaxList<L>
source§impl<L: PartialEq + Language> PartialEq for SyntaxList<L>
impl<L: PartialEq + Language> PartialEq for SyntaxList<L>
source§fn eq(&self, other: &SyntaxList<L>) -> bool
fn eq(&self, other: &SyntaxList<L>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<L: Eq + Language> Eq for SyntaxList<L>
impl<L: Language> StructuralPartialEq for SyntaxList<L>
Auto Trait Implementations§
impl<L> RefUnwindSafe for SyntaxList<L>where
L: RefUnwindSafe,
impl<L> !Send for SyntaxList<L>
impl<L> !Sync for SyntaxList<L>
impl<L> Unpin for SyntaxList<L>where
L: Unpin,
impl<L> UnwindSafe for SyntaxList<L>where
L: 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