pub struct AstVisitableInfallibleWrapper<V: ?Sized>(/* private fields */);Expand description
Implementation detail: wrapper that implements Visit[Mut]<T> for T: #trait_name,
and delegates all the visiting to our trait’s drive[_mut]. Used in the implementation
of visit_inner
Trait Implementations§
Source§impl<'s, V: AstVisitor, T: AstVisitable> Visit<'s, T> for AstVisitableInfallibleWrapper<V>
impl<'s, V: AstVisitor, T: AstVisitable> Visit<'s, T> for AstVisitableInfallibleWrapper<V>
Source§fn visit_by_val(self, x: &'a T) -> ControlFlow<Self::Break, Self>where
Self: Sized,
fn visit_by_val(self, x: &'a T) -> ControlFlow<Self::Break, Self>where
Self: Sized,
Convenience alias for method chaining.
Source§fn visit_by_val_infallible(self, x: &'a T) -> Self
fn visit_by_val_infallible(self, x: &'a T) -> Self
Convenience when the visitor does not return early.
Source§impl<'s, V: AstVisitorMut, T: AstVisitable> VisitMut<'s, T> for AstVisitableInfallibleWrapper<V>
impl<'s, V: AstVisitorMut, T: AstVisitable> VisitMut<'s, T> for AstVisitableInfallibleWrapper<V>
Source§fn visit_by_val(self, x: &'a mut T) -> ControlFlow<Self::Break, Self>where
Self: Sized,
fn visit_by_val(self, x: &'a mut T) -> ControlFlow<Self::Break, Self>where
Self: Sized,
Convenience alias for method chaining.
Source§impl<V> Visitor for AstVisitableInfallibleWrapper<V>
impl<V> Visitor for AstVisitableInfallibleWrapper<V>
Source§type Break = Infallible
type Break = Infallible
The type used for early-return, if the visitor supports it. Use an empty type like
std::convert::Infallible if the visitor does not short-circuit.Auto Trait Implementations§
impl<V> Freeze for AstVisitableInfallibleWrapper<V>
impl<V> RefUnwindSafe for AstVisitableInfallibleWrapper<V>where
V: RefUnwindSafe + ?Sized,
impl<V> Send for AstVisitableInfallibleWrapper<V>
impl<V> Sync for AstVisitableInfallibleWrapper<V>
impl<V> Unpin for AstVisitableInfallibleWrapper<V>
impl<V> UnsafeUnpin for AstVisitableInfallibleWrapper<V>where
V: UnsafeUnpin + ?Sized,
impl<V> UnwindSafe for AstVisitableInfallibleWrapper<V>where
V: UnwindSafe + ?Sized,
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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more