pub struct OnVisit<'o> {
pub on_enter: &'o mut dyn FnMut(Option<&dyn Point>, &Link) -> ShouldBreak,
pub on_exit: &'o mut dyn FnMut(Option<&dyn Point>, &Link) -> ShouldBreak,
pub select: &'o mut dyn FnMut(&dyn Point, &mut Vec<Link>) -> ShouldBreak,
pub on_missing: &'o mut dyn FnMut(&dyn Point, Vec<Link>) -> ShouldBreak,
}
Fields§
§on_enter: &'o mut dyn FnMut(Option<&dyn Point>, &Link) -> ShouldBreak
§on_exit: &'o mut dyn FnMut(Option<&dyn Point>, &Link) -> ShouldBreak
§select: &'o mut dyn FnMut(&dyn Point, &mut Vec<Link>) -> ShouldBreak
§on_missing: &'o mut dyn FnMut(&dyn Point, Vec<Link>) -> ShouldBreak
Trait Implementations§
Source§impl Visitor for OnVisit<'_>
impl Visitor for OnVisit<'_>
Source§fn on_missing(&mut self, point: &dyn Point, links: Vec<Link>) -> ShouldBreak
fn on_missing(&mut self, point: &dyn Point, links: Vec<Link>) -> ShouldBreak
note that this might include duplicates.
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
Auto Trait Implementations§
impl<'o> Freeze for OnVisit<'o>
impl<'o> !RefUnwindSafe for OnVisit<'o>
impl<'o> !Send for OnVisit<'o>
impl<'o> !Sync for OnVisit<'o>
impl<'o> Unpin for OnVisit<'o>
impl<'o> !UnwindSafe for OnVisit<'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