pub struct Preview(pub fn(&Reader<'_>, &PickedElement) -> Option<Picked>);Expand description
What a click on an element would pick for a reference field, in the
part a reader reads, lit and drawn as it would be held (see
crate::selectable::previewed); none if it would pick nothing. It
follows from what the field picks (see Reference::accepts), so two
previews count as equal: a function’s address says nothing.
Tuple Fields§
§0: fn(&Reader<'_>, &PickedElement) -> Option<Picked>Trait Implementations§
Auto Trait Implementations§
impl Freeze for Preview
impl RefUnwindSafe for Preview
impl Send for Preview
impl Sync for Preview
impl Unpin for Preview
impl UnsafeUnpin for Preview
impl UnwindSafe for Preview
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