pub struct ListSwipeDriver {
pub actions_at: Box<dyn Fn(usize, SwipeEdge) -> Vec<ListSwipeAction>>,
pub performed: Box<dyn Fn(usize, SwipeEdge, usize)>,
}Expand description
The swipe-action closures the list() piece supplies (docs/list.md). Exposed to the
backend as day_spec::ListSwipe by the list source adapter; also driven directly by
list_try_swipe (the dayscript swipe_row step and the mock probe).
Fields§
§actions_at: Box<dyn Fn(usize, SwipeEdge) -> Vec<ListSwipeAction>>The offer: the actions for row index on edge. Pure; runs inside native swipe
callbacks.
performed: Box<dyn Fn(usize, SwipeEdge, usize)>Commit an activated action (an index into the offer): defers the app’s handler to the next event drain.
Auto Trait Implementations§
impl !RefUnwindSafe for ListSwipeDriver
impl !Send for ListSwipeDriver
impl !Sync for ListSwipeDriver
impl !UnwindSafe for ListSwipeDriver
impl Freeze for ListSwipeDriver
impl Unpin for ListSwipeDriver
impl UnsafeUnpin for ListSwipeDriver
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> ErasedDestructor for Twhere
T: 'static,
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