Struct lib_ruby_parser::traverse::finder::Finder[][src]

pub struct Finder { /* fields omitted */ }

A struct to find sub-nodes in AST by by a given Pattern

Implementations

impl Finder[src]

pub fn run(looking_for: &str, root: &Node) -> Result<Option<Node>, PatternError>[src]

Performs a search of a given pattern on a given AST.

looking_for is a string slice that is used to construct a Pattern.

Trait Implementations

impl Debug for Finder[src]

impl Observer for Finder[src]

Auto Trait Implementations

impl RefUnwindSafe for Finder

impl Send for Finder

impl Sync for Finder

impl Unpin for Finder

impl UnwindSafe for Finder

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.