Struct sqruff_lib::dialects::SyntaxSet
source · pub struct SyntaxSet(/* private fields */);
Implementations§
source§impl SyntaxSet
impl SyntaxSet
pub const EMPTY: SyntaxSet = _
pub const fn new(kinds: &[SyntaxKind]) -> Self
pub const fn single(kind: SyntaxKind) -> Self
pub fn is_empty(&self) -> bool
pub fn insert(&mut self, value: SyntaxKind)
pub const fn intersection(self, other: &Self) -> Self
pub const fn union(self, other: &Self) -> Self
pub const fn intersects(&self, other: &Self) -> bool
pub const fn contains(&self, kind: SyntaxKind) -> bool
pub const fn len(&self) -> usize
pub fn iter(&self) -> SyntaxSetIter ⓘ
Trait Implementations§
source§impl Extend<SyntaxKind> for SyntaxSet
impl Extend<SyntaxKind> for SyntaxSet
source§fn extend<T: IntoIterator<Item = SyntaxKind>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = SyntaxKind>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
source§impl FromIterator<SyntaxKind> for SyntaxSet
impl FromIterator<SyntaxKind> for SyntaxSet
source§fn from_iter<T: IntoIterator<Item = SyntaxKind>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = SyntaxKind>>(iter: T) -> Self
Creates a value from an iterator. Read more
source§impl IntoIterator for &SyntaxSet
impl IntoIterator for &SyntaxSet
source§impl IntoIterator for SyntaxSet
impl IntoIterator for SyntaxSet
impl Eq for SyntaxSet
impl StructuralPartialEq for SyntaxSet
Auto Trait Implementations§
impl Freeze for SyntaxSet
impl RefUnwindSafe for SyntaxSet
impl Send for SyntaxSet
impl Sync for SyntaxSet
impl Unpin for SyntaxSet
impl UnwindSafe for SyntaxSet
Blanket Implementations§
source§impl<T> AsAnyMut for Twhere
T: Any,
impl<T> AsAnyMut for Twhere
T: Any,
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.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