#[repr(C)]pub struct Fab {
pub icon: Icon,
pub on_press: ActionToken,
pub label: Option<String>,
}Expand description
A floating action button anchored over the scaffold body (the raised primary action).
Fields§
§icon: Icon§on_press: ActionToken§label: Option<String>Extended FAB: the label shown next to the icon, which is also its accessible name. None = the
round FAB. BREAKING (Moj Termin design release): Fab { .. } literals need this field; the
with_fab / with_extended_fab builders are unaffected.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Fab
impl<'de> Deserialize<'de> for Fab
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Fab
impl RefUnwindSafe for Fab
impl Send for Fab
impl Sync for Fab
impl Unpin for Fab
impl UnsafeUnpin for Fab
impl UnwindSafe for Fab
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