pub struct TimePickerDialogBuilder { /* private fields */ }Expand description
Configuration handle returned by time_picker_dialog.
Implementations§
Source§impl TimePickerDialogBuilder
impl TimePickerDialogBuilder
Sourcepub fn dialog(&self, value: DialogScope) -> Self
pub fn dialog(&self, value: DialogScope) -> Self
Configure dialog before this component executes.
Sourcepub fn dialog_optional(&self, value: Option<DialogScope>) -> Self
pub fn dialog_optional(&self, value: Option<DialogScope>) -> Self
Configure dialog before this component executes.
Sourcepub fn state(&self, value: State<TimePickerState>) -> Self
pub fn state(&self, value: State<TimePickerState>) -> Self
Configure state before this component executes.
Sourcepub fn state_optional(&self, value: Option<State<TimePickerState>>) -> Self
pub fn state_optional(&self, value: Option<State<TimePickerState>>) -> Self
Configure state before this component executes.
Sourcepub fn title(&self, value: impl Into<String>) -> Self
pub fn title(&self, value: impl Into<String>) -> Self
Configure title before this component executes.
Sourcepub fn title_optional(&self, value: Option<String>) -> Self
pub fn title_optional(&self, value: Option<String>) -> Self
Configure title before this component executes.
Configure confirm_button before this component executes.
Configure confirm_button before this component executes.
Configure confirm_button before this component executes.
Configure dismiss_button before this component executes.
Configure dismiss_button before this component executes.
Configure dismiss_button before this component executes.
Sourcepub fn show_mode_toggle(&self, value: bool) -> Self
pub fn show_mode_toggle(&self, value: bool) -> Self
Configure show_mode_toggle before this component executes.
Sourcepub fn show_mode_toggle_optional(&self, value: Option<bool>) -> Self
pub fn show_mode_toggle_optional(&self, value: Option<bool>) -> Self
Configure show_mode_toggle before this component executes.
Sourcepub fn picker_modifier(&self, value: Modifier) -> Self
pub fn picker_modifier(&self, value: Modifier) -> Self
Configure picker_modifier before this component executes.
Sourcepub fn picker_modifier_optional(&self, value: Option<Modifier>) -> Self
pub fn picker_modifier_optional(&self, value: Option<Modifier>) -> Self
Configure picker_modifier before this component executes.
Sourcepub fn picker_initial_hour(&self, value: u8) -> Self
pub fn picker_initial_hour(&self, value: u8) -> Self
Configure picker_initial_hour before this component executes.
Sourcepub fn picker_initial_hour_optional(&self, value: Option<u8>) -> Self
pub fn picker_initial_hour_optional(&self, value: Option<u8>) -> Self
Configure picker_initial_hour before this component executes.
Sourcepub fn picker_initial_minute(&self, value: u8) -> Self
pub fn picker_initial_minute(&self, value: u8) -> Self
Configure picker_initial_minute before this component executes.
Sourcepub fn picker_initial_minute_optional(&self, value: Option<u8>) -> Self
pub fn picker_initial_minute_optional(&self, value: Option<u8>) -> Self
Configure picker_initial_minute before this component executes.
Sourcepub fn picker_is_24_hour(&self, value: bool) -> Self
pub fn picker_is_24_hour(&self, value: bool) -> Self
Configure picker_is_24_hour before this component executes.
Sourcepub fn picker_is_24_hour_optional(&self, value: Option<bool>) -> Self
pub fn picker_is_24_hour_optional(&self, value: Option<bool>) -> Self
Configure picker_is_24_hour before this component executes.
Sourcepub fn picker_display_mode(&self, value: TimePickerDisplayMode) -> Self
pub fn picker_display_mode(&self, value: TimePickerDisplayMode) -> Self
Configure picker_display_mode before this component executes.
Sourcepub fn picker_display_mode_optional(
&self,
value: Option<TimePickerDisplayMode>,
) -> Self
pub fn picker_display_mode_optional( &self, value: Option<TimePickerDisplayMode>, ) -> Self
Configure picker_display_mode before this component executes.
Sourcepub fn picker_hour_step(&self, value: u8) -> Self
pub fn picker_hour_step(&self, value: u8) -> Self
Configure picker_hour_step before this component executes.
Sourcepub fn picker_hour_step_optional(&self, value: Option<u8>) -> Self
pub fn picker_hour_step_optional(&self, value: Option<u8>) -> Self
Configure picker_hour_step before this component executes.
Sourcepub fn picker_minute_step(&self, value: u8) -> Self
pub fn picker_minute_step(&self, value: u8) -> Self
Configure picker_minute_step before this component executes.
Sourcepub fn picker_minute_step_optional(&self, value: Option<u8>) -> Self
pub fn picker_minute_step_optional(&self, value: Option<u8>) -> Self
Configure picker_minute_step before this component executes.
Sourcepub fn picker_layout(&self, value: TimePickerLayout) -> Self
pub fn picker_layout(&self, value: TimePickerLayout) -> Self
Configure picker_layout before this component executes.
Sourcepub fn picker_layout_optional(&self, value: Option<TimePickerLayout>) -> Self
pub fn picker_layout_optional(&self, value: Option<TimePickerLayout>) -> Self
Configure picker_layout before this component executes.
Auto Trait Implementations§
impl Freeze for TimePickerDialogBuilder
impl RefUnwindSafe for TimePickerDialogBuilder
impl Send for TimePickerDialogBuilder
impl Sync for TimePickerDialogBuilder
impl Unpin for TimePickerDialogBuilder
impl UnsafeUnpin for TimePickerDialogBuilder
impl UnwindSafe for TimePickerDialogBuilder
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.