pub enum CrawlType {
Segment(Vec<SegmentType>),
RootOnly,
}Expand description
Controls which CST nodes a rule visits.
Variants§
Segment(Vec<SegmentType>)
Visit every segment of the listed types.
RootOnly
Visit the root segment only (whole-file rules).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CrawlType
impl RefUnwindSafe for CrawlType
impl Send for CrawlType
impl Sync for CrawlType
impl Unpin for CrawlType
impl UnsafeUnpin for CrawlType
impl UnwindSafe for CrawlType
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