Struct ambient_ui::editor::ParseableInput
source · pub struct ParseableInput<T: FromStr + Debug + Display + Clone + Sync + Send + 'static> {
pub value: T,
pub on_change: Cb<dyn Fn(T) + Sync + Send>,
}
Expand description
An editor for a value that can be parsed from a string.
Fields§
§value: T
The current value.
on_change: Cb<dyn Fn(T) + Sync + Send>
Callback for when the value changes.
Implementations§
Trait Implementations§
source§impl<T: Clone + FromStr + Debug + Display + Clone + Sync + Send + 'static> Clone for ParseableInput<T>
impl<T: Clone + FromStr + Debug + Display + Clone + Sync + Send + 'static> Clone for ParseableInput<T>
source§fn clone(&self) -> ParseableInput<T>
fn clone(&self) -> ParseableInput<T>
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 moreAuto Trait Implementations§
impl<T> !RefUnwindSafe for ParseableInput<T>
impl<T> Send for ParseableInput<T>
impl<T> Sync for ParseableInput<T>
impl<T> Unpin for ParseableInput<T>where
T: Unpin,
impl<T> !UnwindSafe for ParseableInput<T>
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.