pub struct Edges(pub u8);Expand description
A set of screen edges, for the defers_system_gestures modifier (docs/cover.md). Mirrors
SwiftUI’s Edge.Set: on iOS these map to UIRectEdge for
preferredScreenEdgesDeferringSystemGestures; on Android any non-empty set enters
swipe-to-reveal immersive mode (the closest platform analogue).
Tuple Fields§
§0: u8Implementations§
Source§impl Edges
impl Edges
pub const NONE: Edges
pub const TOP: Edges
pub const BOTTOM: Edges
pub const LEADING: Edges
pub const TRAILING: Edges
pub const ALL: Edges
pub fn contains(self, other: Edges) -> bool
pub fn union(self, other: Edges) -> Edges
pub fn is_empty(self) -> bool
Trait Implementations§
impl Copy for Edges
impl Eq for Edges
impl StructuralPartialEq for Edges
Auto Trait Implementations§
impl Freeze for Edges
impl RefUnwindSafe for Edges
impl Send for Edges
impl Sync for Edges
impl Unpin for Edges
impl UnsafeUnpin for Edges
impl UnwindSafe for Edges
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