pub enum FabLocation {
StartFloat,
CenterFloat,
EndFloat,
StartDocked,
CenterDocked,
EndDocked,
}Expand description
Where the floating action button sits.
Two questions, and they are independent: which end of the row, and whether the button floats clear of the bottom bar or docks astride its top edge. The docked placements are the ones a notched bottom bar is cut for.
Variants§
StartFloat
Leading end, clear of the bar.
CenterFloat
Centred, clear of the bar.
EndFloat
Trailing end, clear of the bar — the default, and where a thumb reaches.
StartDocked
Leading end, centred on the bar’s top edge.
CenterDocked
Centred on the bar’s top edge, horizontally centred.
EndDocked
Trailing end, centred on the bar’s top edge.
Implementations§
Trait Implementations§
Source§impl Clone for FabLocation
impl Clone for FabLocation
impl Copy for FabLocation
Source§impl Debug for FabLocation
impl Debug for FabLocation
Source§impl Default for FabLocation
impl Default for FabLocation
impl Eq for FabLocation
Source§impl PartialEq for FabLocation
impl PartialEq for FabLocation
impl StructuralPartialEq for FabLocation
Auto Trait Implementations§
impl Freeze for FabLocation
impl RefUnwindSafe for FabLocation
impl Send for FabLocation
impl Sync for FabLocation
impl Unpin for FabLocation
impl UnsafeUnpin for FabLocation
impl UnwindSafe for FabLocation
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