Struct ambient_ui::editor::EditableDuration
source · pub struct EditableDuration { /* private fields */ }
Expand description
A duration that can be edited.
Implementations§
Trait Implementations§
source§impl Clone for EditableDuration
impl Clone for EditableDuration
source§fn clone(&self) -> EditableDuration
fn clone(&self) -> EditableDuration
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 EditableDuration
impl Debug for EditableDuration
source§impl Default for EditableDuration
impl Default for EditableDuration
source§fn default() -> EditableDuration
fn default() -> EditableDuration
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for EditableDuration
impl<'de> Deserialize<'de> for EditableDuration
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
source§impl Editor for EditableDuration
impl Editor for EditableDuration
source§fn editor(self, on_change: ChangeCb<Self>, _: EditorOpts) -> Element
fn editor(self, on_change: ChangeCb<Self>, _: EditorOpts) -> Element
Create an editor Element for this value.
source§fn edit_or_view(
self,
on_change: Option<ChangeCb<Self>>,
opts: EditorOpts
) -> Elementwhere
Self: Sized,
fn edit_or_view(
self,
on_change: Option<ChangeCb<Self>>,
opts: EditorOpts
) -> Elementwhere
Self: Sized,
source§impl From<&EditableDuration> for Duration
impl From<&EditableDuration> for Duration
source§fn from(v: &EditableDuration) -> Self
fn from(v: &EditableDuration) -> Self
Converts to this type from the input type.
source§impl From<Duration> for EditableDuration
impl From<Duration> for EditableDuration
source§impl From<EditableDuration> for Duration
impl From<EditableDuration> for Duration
source§fn from(v: EditableDuration) -> Self
fn from(v: EditableDuration) -> Self
Converts to this type from the input type.
source§impl From<String> for EditableDuration
impl From<String> for EditableDuration
source§impl Hash for EditableDuration
impl Hash for EditableDuration
source§impl Ord for EditableDuration
impl Ord for EditableDuration
source§fn cmp(&self, other: &EditableDuration) -> Ordering
fn cmp(&self, other: &EditableDuration) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for EditableDuration
impl PartialEq for EditableDuration
source§fn eq(&self, other: &EditableDuration) -> bool
fn eq(&self, other: &EditableDuration) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for EditableDuration
impl PartialOrd for EditableDuration
source§fn partial_cmp(&self, other: &EditableDuration) -> Option<Ordering>
fn partial_cmp(&self, other: &EditableDuration) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for EditableDuration
impl Serialize for EditableDuration
impl Eq for EditableDuration
impl StructuralEq for EditableDuration
impl StructuralPartialEq for EditableDuration
Auto Trait Implementations§
impl RefUnwindSafe for EditableDuration
impl Send for EditableDuration
impl Sync for EditableDuration
impl Unpin for EditableDuration
impl UnwindSafe for EditableDuration
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<T> Downcast for T
impl<T> Downcast for T
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.
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.