[][src]Struct gluon_base::types::ControlVisitation

pub struct ControlVisitation<F: ?Sized>(pub F);

Wrapper type which allows functions to control how to traverse the members of the type

Trait Implementations

impl<F, Id, T> TypeVisitor<Id, T> for ControlVisitation<F> where
    F: FnMut(&T) -> Option<T>,
    Id: Clone,
    T::SpannedId: Clone,
    T: TypeExt<Id = Id> + From<(Type<Id, T>, Flags)> + From<Type<Id, T>>,
    T::Types: FromIterator<T> + Clone,
    T::Generics: FromIterator<Generic<Id>> + Clone,
    T::Fields: FromIterator<Field<T::SpannedId, T>> + Clone
[src]

type Context = NullInterner

impl<'a, F: ?Sized, T> Walker<'a, T> for ControlVisitation<F> where
    F: FnMut(&'a T),
    T: 'a, 
[src]

Auto Trait Implementations

impl<F: ?Sized> RefUnwindSafe for ControlVisitation<F> where
    F: RefUnwindSafe

impl<F: ?Sized> Send for ControlVisitation<F> where
    F: Send

impl<F: ?Sized> Sync for ControlVisitation<F> where
    F: Sync

impl<F: ?Sized> Unpin for ControlVisitation<F> where
    F: Unpin

impl<F: ?Sized> UnwindSafe for ControlVisitation<F> where
    F: UnwindSafe

Blanket Implementations

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

impl<Id> AsId<Id> for Id where
    Id: ?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.

impl<Id, T, F> TypeVisitor<Id, T> for F where
    F: FnMut(&T) -> Option<T> + ?Sized,
    Id: Clone,
    T: TypeExt<Id = Id> + From<(Type<Id, T>, Flags)> + From<Type<Id, T>>,
    <T as TypePtr>::SpannedId: Clone,
    <T as TypePtr>::Types: FromIterator<T>,
    <T as TypePtr>::Types: Clone,
    <T as TypePtr>::Generics: FromIterator<Generic<Id>>,
    <T as TypePtr>::Generics: Clone,
    <T as TypePtr>::Fields: FromIterator<Field<<T as TypePtr>::SpannedId, T>>,
    <T as TypePtr>::Fields: Clone
[src]

type Context = [NullInternerInner; 0]

impl<'a, F> Walker<'a, ArcKind> for F where
    F: FnMut(&ArcKind) + ?Sized
[src]

impl<'a, I, T, F> Walker<'a, T> for F where
    F: FnMut(&'a T) + ?Sized,
    I: 'a,
    T: TypePtr<Id = I> + 'a, 
[src]