Struct ambient_api::prelude::SystemTimeEditor
source · pub struct SystemTimeEditor {
pub value: SystemTime,
pub on_change: Option<Arc<CbDebuggable<dyn Fn(SystemTime) + Sync + Send>>>,
}
Expand description
An editor for SystemTime.
At present, this does not support editing and is purely display-only.
Fields§
§value: SystemTime
The value to edit.
on_change: Option<Arc<CbDebuggable<dyn Fn(SystemTime) + Sync + Send>>>
Callback for when the value changes.
Trait Implementations§
source§impl Clone for SystemTimeEditor
impl Clone for SystemTimeEditor
source§fn clone(&self) -> SystemTimeEditor
fn clone(&self) -> SystemTimeEditor
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 SystemTimeEditor
impl Debug for SystemTimeEditor
source§impl ElementComponent for SystemTimeEditor
impl ElementComponent for SystemTimeEditor
Auto Trait Implementations§
impl !RefUnwindSafe for SystemTimeEditor
impl Send for SystemTimeEditor
impl Sync for SystemTimeEditor
impl Unpin for SystemTimeEditor
impl !UnwindSafe for SystemTimeEditor
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.