pub struct OnEnter<'o>(pub &'o mut dyn FnMut(Option<&dyn Point>, &Link) -> ShouldBreak);
Tuple Fields§
§0: &'o mut dyn FnMut(Option<&dyn Point>, &Link) -> ShouldBreak
Trait Implementations§
Source§impl Visitor for OnEnter<'_>
impl Visitor for OnEnter<'_>
fn on_enter(&mut self, point: Option<&dyn Point>, link: &Link) -> ShouldBreak
fn on_exit(&mut self, point: Option<&dyn Point>, link: &Link) -> ShouldBreak
fn select(&mut self, point: &dyn Point, links: &mut Vec<Link>) -> ShouldBreak
fn on_missing(&mut self, point: &dyn Point, links: Vec<Link>) -> ShouldBreak
Auto Trait Implementations§
impl<'o> Freeze for OnEnter<'o>
impl<'o> !RefUnwindSafe for OnEnter<'o>
impl<'o> !Send for OnEnter<'o>
impl<'o> !Sync for OnEnter<'o>
impl<'o> Unpin for OnEnter<'o>
impl<'o> !UnwindSafe for OnEnter<'o>
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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