pub struct GestureRole {
pub step: Core,
pub init: Core,
pub ty: Ty,
pub gesture_ty: Ty,
}Expand description
The two halves of a gestures(step, init), and the type they accumulate.
Fields§
§step: Core(S, G) -> S. The bare gesture and not an Envelope[G]: a gesture has no position in the
total order, so there is no envelope to give it (prelude’s note on the primitive).
init: CoreThe accumulator before any gesture — and what the server renders against, because a
server has seen none. render refuses Mode A to a page that reads this, so the constant is
unobservable for the same reason freshness()’s Confirmed is.
ty: TyS, the accumulator’s type.
gesture_ty: TyG, the gesture union’s type — what a handler must construct to reach this fold.
Trait Implementations§
Source§impl Clone for GestureRole
impl Clone for GestureRole
Source§fn clone(&self) -> GestureRole
fn clone(&self) -> GestureRole
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for GestureRole
impl RefUnwindSafe for GestureRole
impl Send for GestureRole
impl Sync for GestureRole
impl Unpin for GestureRole
impl UnwindSafe for GestureRole
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