Struct ambient_ui::editor::DurationEditor
source · pub struct DurationEditor {
pub value: EditableDuration,
pub on_change: Cb<dyn Fn(EditableDuration) + Sync + Send>,
}
Expand description
An editor for EditableDuration.
Fields§
§value: EditableDuration
The value to edit.
on_change: Cb<dyn Fn(EditableDuration) + Sync + Send>
Callback for when the value changes.
Implementations§
source§impl DurationEditor
impl DurationEditor
sourcepub fn new(
value: EditableDuration,
on_change: Cb<dyn Fn(EditableDuration) + Sync + Send>
) -> Self
pub fn new( value: EditableDuration, on_change: Cb<dyn Fn(EditableDuration) + Sync + Send> ) -> Self
Create a new DurationEditor.
Trait Implementations§
source§impl Clone for DurationEditor
impl Clone for DurationEditor
source§fn clone(&self) -> DurationEditor
fn clone(&self) -> DurationEditor
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DurationEditor
impl Debug for DurationEditor
source§impl ElementComponent for DurationEditor
impl ElementComponent for DurationEditor
Auto Trait Implementations§
impl !RefUnwindSafe for DurationEditor
impl Send for DurationEditor
impl Sync for DurationEditor
impl Unpin for DurationEditor
impl !UnwindSafe for DurationEditor
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
source§impl<T> Downcast for T
impl<T> Downcast for T
source§impl<T> ElementComponentExt for Twhere
T: ElementComponent + 'static,
impl<T> ElementComponentExt for Twhere
T: ElementComponent + 'static,
source§impl<T> ElementComponentName for T
impl<T> ElementComponentName for T
source§fn element_component_name(&self) -> &'static str
fn element_component_name(&self) -> &'static str
Returns the name of the type implementing ElementComponent.