pub enum Edge {
Top,
Bottom,
Left,
Right,
Center,
}Expand description
Which side of the viewport a SurfaceScaffold pins its panel to, and the direction it slides in from.
Center is not an edge: it means the panel is centred on both axes and arrives by
fading rather than sliding, which is what a launcher or a command palette wants.
Variants§
Trait Implementations§
impl Copy for Edge
impl Eq for Edge
impl StructuralPartialEq for Edge
Auto Trait Implementations§
impl Freeze for Edge
impl RefUnwindSafe for Edge
impl Send for Edge
impl Sync for Edge
impl Unpin for Edge
impl UnsafeUnpin for Edge
impl UnwindSafe for Edge
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