pub struct FloatingActionButtonMenuBuilder { /* private fields */ }Expand description
Configuration handle returned by floating_action_button_menu.
Implementations§
Source§impl FloatingActionButtonMenuBuilder
impl FloatingActionButtonMenuBuilder
Sourcepub fn state(&self, value: State<FloatingActionButtonMenuState>) -> Self
pub fn state(&self, value: State<FloatingActionButtonMenuState>) -> Self
Configure state before this component executes.
Sourcepub fn state_optional(
&self,
value: Option<State<FloatingActionButtonMenuState>>,
) -> Self
pub fn state_optional( &self, value: Option<State<FloatingActionButtonMenuState>>, ) -> Self
Configure state before this component executes.
Sourcepub fn items(&self, value: Vec<FloatingActionButtonMenuItem>) -> Self
pub fn items(&self, value: Vec<FloatingActionButtonMenuItem>) -> Self
Configure items before this component executes.
Sourcepub fn items_optional(
&self,
value: Option<Vec<FloatingActionButtonMenuItem>>,
) -> Self
pub fn items_optional( &self, value: Option<Vec<FloatingActionButtonMenuItem>>, ) -> Self
Configure items before this component executes.
Sourcepub fn main_content<F, Output>(&self, value: F) -> Self
pub fn main_content<F, Output>(&self, value: F) -> Self
Configure main_content before this component executes.
Configure main_content before this component executes.
Sourcepub fn main_content_optional(&self, value: Option<RenderSlot>) -> Self
pub fn main_content_optional(&self, value: Option<RenderSlot>) -> Self
Configure main_content before this component executes.
Sourcepub fn modifier(&self, value: Modifier) -> Self
pub fn modifier(&self, value: Modifier) -> Self
Configure modifier before this component executes.
Sourcepub fn modifier_optional(&self, value: Option<Modifier>) -> Self
pub fn modifier_optional(&self, value: Option<Modifier>) -> Self
Configure modifier before this component executes.
Sourcepub fn alignment(&self, value: FloatingActionButtonMenuAlignment) -> Self
pub fn alignment(&self, value: FloatingActionButtonMenuAlignment) -> Self
Configure alignment before this component executes.
Sourcepub fn alignment_optional(
&self,
value: Option<FloatingActionButtonMenuAlignment>,
) -> Self
pub fn alignment_optional( &self, value: Option<FloatingActionButtonMenuAlignment>, ) -> Self
Configure alignment before this component executes.
Sourcepub fn color(&self, value: FloatingActionButtonMenuColor) -> Self
pub fn color(&self, value: FloatingActionButtonMenuColor) -> Self
Configure color before this component executes.
Sourcepub fn color_optional(
&self,
value: Option<FloatingActionButtonMenuColor>,
) -> Self
pub fn color_optional( &self, value: Option<FloatingActionButtonMenuColor>, ) -> Self
Configure color before this component executes.
Sourcepub fn scrim_color(&self, value: Color) -> Self
pub fn scrim_color(&self, value: Color) -> Self
Configure scrim_color before this component executes.
Sourcepub fn scrim_color_optional(&self, value: Option<Color>) -> Self
pub fn scrim_color_optional(&self, value: Option<Color>) -> Self
Configure scrim_color before this component executes.
Sourcepub fn enabled_optional(&self, value: Option<bool>) -> Self
pub fn enabled_optional(&self, value: Option<bool>) -> Self
Configure enabled before this component executes.
Sourcepub fn open_label(&self, value: impl Into<String>) -> Self
pub fn open_label(&self, value: impl Into<String>) -> Self
Configure open_label before this component executes.
Sourcepub fn open_label_optional(&self, value: Option<String>) -> Self
pub fn open_label_optional(&self, value: Option<String>) -> Self
Configure open_label before this component executes.
Sourcepub fn close_label(&self, value: impl Into<String>) -> Self
pub fn close_label(&self, value: impl Into<String>) -> Self
Configure close_label before this component executes.
Sourcepub fn close_label_optional(&self, value: Option<String>) -> Self
pub fn close_label_optional(&self, value: Option<String>) -> Self
Configure close_label before this component executes.
Auto Trait Implementations§
impl Freeze for FloatingActionButtonMenuBuilder
impl RefUnwindSafe for FloatingActionButtonMenuBuilder
impl Send for FloatingActionButtonMenuBuilder
impl Sync for FloatingActionButtonMenuBuilder
impl Unpin for FloatingActionButtonMenuBuilder
impl UnsafeUnpin for FloatingActionButtonMenuBuilder
impl UnwindSafe for FloatingActionButtonMenuBuilder
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.