Struct sqruff_lib::core::rules::crawlers::RootOnlyCrawler
source · pub struct RootOnlyCrawler;Expand description
A crawler that doesn’t crawl.
This just yields one context on the root-level (topmost) segment of the file.
Trait Implementations§
source§impl BaseCrawler for RootOnlyCrawler
impl BaseCrawler for RootOnlyCrawler
fn crawl<'a>(&self, context: RuleContext<'a>) -> Vec<RuleContext<'a>>
fn works_on_unparsable(&self) -> bool
fn passes_filter(&self, segment: &ErasedSegment) -> bool
source§impl Clone for RootOnlyCrawler
impl Clone for RootOnlyCrawler
source§fn clone(&self) -> RootOnlyCrawler
fn clone(&self) -> RootOnlyCrawler
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 RootOnlyCrawler
impl Debug for RootOnlyCrawler
source§impl Default for RootOnlyCrawler
impl Default for RootOnlyCrawler
source§fn default() -> RootOnlyCrawler
fn default() -> RootOnlyCrawler
Returns the “default value” for a type. Read more
source§impl From<RootOnlyCrawler> for Crawler
impl From<RootOnlyCrawler> for Crawler
source§fn from(v: RootOnlyCrawler) -> Crawler
fn from(v: RootOnlyCrawler) -> Crawler
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RootOnlyCrawler
impl RefUnwindSafe for RootOnlyCrawler
impl Send for RootOnlyCrawler
impl Sync for RootOnlyCrawler
impl Unpin for RootOnlyCrawler
impl UnwindSafe for RootOnlyCrawler
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<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