Enum glsl::visitor::Visit[][src]

pub enum Visit {
    Children,
    Parent,
}

Visit strategy after having visited an AST node.

Some AST nodes have children – in enum’s variants, in some fields as nested in Vec, etc. Those nodes can be visited depending on the strategy you chose.

Variants

Children

The visitor will go deeper in the AST by visiting all the children, if any. If no children are present or if having children doesn’t make sense for a specific part of the AST, this strategy will be ignored.

Parent

The visitor won’t visit children nor siblings and will go up.

Trait Implementations

impl Clone for Visit[src]

impl Debug for Visit[src]

impl Hash for Visit[src]

impl PartialEq<Visit> for Visit[src]

impl Copy for Visit[src]

impl Eq for Visit[src]

impl StructuralEq for Visit[src]

impl StructuralPartialEq for Visit[src]

Auto Trait Implementations

impl RefUnwindSafe for Visit

impl Send for Visit

impl Sync for Visit

impl Unpin for Visit

impl UnwindSafe for Visit

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.