Skip to main content

ChainedWalk

Struct ChainedWalk 

Source
pub struct ChainedWalk<Visitor1, Visitor2> {
    pub visitor_1: Visitor1,
    pub visitor_2: Visitor2,
}

Fields§

§visitor_1: Visitor1§visitor_2: Visitor2

Implementations§

Source§

impl<Visitor1, Visitor2> ChainedWalk<Visitor1, Visitor2>
where Visitor1: Visitor, Visitor2: Visitor,

Source

pub fn new(visitor_1: Visitor1, visitor_2: Visitor2) -> Self

Trait Implementations§

Source§

impl<Visitor1, Visitor2> Visitor for ChainedWalk<Visitor1, Visitor2>
where Visitor1: Visitor, Visitor2: Visitor,

Source§

fn visit_import(&mut self, i: &mut ImportDef)

Source§

fn leave_import(&mut self)

Source§

fn visit_include(&mut self, i: &mut IncludeDef)

Source§

fn leave_include(&mut self)

Source§

fn visit_fail(&mut self, f: &mut FailDef)

Source§

fn leave_fail(&mut self)

Source§

fn visit_value(&mut self, val: &mut Value)

Source§

fn leave_value(&mut self, val: &Value)

Source§

fn visit_expression(&mut self, expr: &mut Expression)

Source§

fn leave_expression(&mut self, expr: &Expression)

Source§

fn visit_statement(&mut self, stmt: &mut Statement)

Source§

fn leave_statement(&mut self, stmt: &Statement)

Auto Trait Implementations§

§

impl<Visitor1, Visitor2> Freeze for ChainedWalk<Visitor1, Visitor2>
where Visitor1: Freeze, Visitor2: Freeze,

§

impl<Visitor1, Visitor2> RefUnwindSafe for ChainedWalk<Visitor1, Visitor2>
where Visitor1: RefUnwindSafe, Visitor2: RefUnwindSafe,

§

impl<Visitor1, Visitor2> Send for ChainedWalk<Visitor1, Visitor2>
where Visitor1: Send, Visitor2: Send,

§

impl<Visitor1, Visitor2> Sync for ChainedWalk<Visitor1, Visitor2>
where Visitor1: Sync, Visitor2: Sync,

§

impl<Visitor1, Visitor2> Unpin for ChainedWalk<Visitor1, Visitor2>
where Visitor1: Unpin, Visitor2: Unpin,

§

impl<Visitor1, Visitor2> UnsafeUnpin for ChainedWalk<Visitor1, Visitor2>
where Visitor1: UnsafeUnpin, Visitor2: UnsafeUnpin,

§

impl<Visitor1, Visitor2> UnwindSafe for ChainedWalk<Visitor1, Visitor2>
where Visitor1: UnwindSafe, Visitor2: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Walker for T
where T: Visitor,

Source§

fn walk_statement_list(&mut self, stmts: Vec<&mut Statement>)

Source§

fn walk_statement(&mut self, stmt: &mut Statement)

Source§

fn walk_fieldset(&mut self, fs: &mut FieldList)

Source§

fn walk_expression(&mut self, expr: &mut Expression)

Source§

fn walk_value(&mut self, val: &mut Value)