pub struct SheetTo { /* private fields */ }Expand description
Where an application asks a sheet to go — the reference’s DraggableScrollableController,
as a request rather than an object.
Sent with Command::sheet(key, to) to the sheet wrapped in keyed(key, …). A height is a
share of the sheet’s box, kept between its floor and max as a finger’s would be — so
asking a sheet that can be dismissed for nothing puts it away, message and all.
ⓘ
Command::sheet("places", SheetTo::size(1.0).animate(0.3, Curve::ease()))What it does to a sheet is what the reference’s controller does:
- whatever was carrying it stops — a settle, a coast, an earlier request;
- it does not snap afterwards, even on a sheet that snaps: snapping answers a finger;
- a finger on the sheet refuses it, the rule a scroll request keeps too — and a finger landing on a sheet a request is moving stops it where it is.
Implementations§
Trait Implementations§
impl StructuralPartialEq for SheetTo
Auto Trait Implementations§
impl Freeze for SheetTo
impl RefUnwindSafe for SheetTo
impl Send for SheetTo
impl Sync for SheetTo
impl Unpin for SheetTo
impl UnsafeUnpin for SheetTo
impl UnwindSafe for SheetTo
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