Struct biome_js_syntax::SyntaxNodeText
source · pub struct SyntaxNodeText { /* private fields */ }Implementations§
source§impl SyntaxNodeText
impl SyntaxNodeText
pub fn len(&self) -> TextSize
pub fn is_empty(&self) -> bool
pub fn contains_char(&self, c: char) -> bool
pub fn find_char(&self, c: char) -> Option<TextSize>
pub fn char_at(&self, offset: TextSize) -> Option<char>
pub fn slice<R>(&self, range: R) -> SyntaxNodeTextwhere
R: SyntaxTextRange,
pub fn try_fold_chunks<T, F, E>(&self, init: T, f: F) -> Result<T, E>
pub fn try_for_each_chunk<F, E>(&self, f: F) -> Result<(), E>
pub fn for_each_chunk<F>(&self, f: F)
pub fn chars(&self) -> impl FusedIterator
Trait Implementations§
source§impl Clone for SyntaxNodeText
impl Clone for SyntaxNodeText
source§fn clone(&self) -> SyntaxNodeText
fn clone(&self) -> SyntaxNodeText
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 Debug for SyntaxNodeText
impl Debug for SyntaxNodeText
source§impl Display for SyntaxNodeText
impl Display for SyntaxNodeText
source§impl PartialEq<&str> for SyntaxNodeText
impl PartialEq<&str> for SyntaxNodeText
source§impl PartialEq<SyntaxNodeText> for &str
impl PartialEq<SyntaxNodeText> for &str
source§fn eq(&self, rhs: &SyntaxNodeText) -> bool
fn eq(&self, rhs: &SyntaxNodeText) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialEq<SyntaxNodeText> for str
impl PartialEq<SyntaxNodeText> for str
source§fn eq(&self, rhs: &SyntaxNodeText) -> bool
fn eq(&self, rhs: &SyntaxNodeText) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialEq<str> for SyntaxNodeText
impl PartialEq<str> for SyntaxNodeText
source§impl PartialEq for SyntaxNodeText
impl PartialEq for SyntaxNodeText
source§fn eq(&self, other: &SyntaxNodeText) -> bool
fn eq(&self, other: &SyntaxNodeText) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for SyntaxNodeText
Auto Trait Implementations§
impl RefUnwindSafe for SyntaxNodeText
impl !Send for SyntaxNodeText
impl !Sync for SyntaxNodeText
impl Unpin for SyntaxNodeText
impl UnwindSafe for SyntaxNodeText
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<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.