pub struct TypedInputStorage<T>{ /* private fields */ }Implementations§
Source§impl<T> TypedInputStorage<T>
impl<T> TypedInputStorage<T>
Sourcepub fn from_initial(value: T) -> Selfwhere
T: Display,
pub fn from_initial(value: T) -> Selfwhere
T: Display,
Create a TypedInputStorage with an empty value.
pub fn parsed(&self) -> Result<T, <T as FromStr>::Err>
Sourcepub fn modify<F>(&mut self, f: F) -> Result<(), TypedInputParseError>
pub fn modify<F>(&mut self, f: F) -> Result<(), TypedInputParseError>
Modify the value.
See also the Self::set_if_not_focused method.
Sourcepub fn set_if_not_focused(&mut self, value: T)where
T: Display,
pub fn set_if_not_focused(&mut self, value: T)where
T: Display,
Update the value if the user is not editing it.
See also the Self::modify method.
Trait Implementations§
Source§impl<T> Clone for TypedInputStorage<T>
impl<T> Clone for TypedInputStorage<T>
Source§fn clone(&self) -> TypedInputStorage<T>
fn clone(&self) -> TypedInputStorage<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T> Default for TypedInputStorage<T>
impl<T> Default for TypedInputStorage<T>
Source§impl<T> PartialEq for TypedInputStorage<T>
impl<T> PartialEq for TypedInputStorage<T>
impl<T> StructuralPartialEq for TypedInputStorage<T>
Auto Trait Implementations§
impl<T> !RefUnwindSafe for TypedInputStorage<T>
impl<T> !Send for TypedInputStorage<T>
impl<T> !Sync for TypedInputStorage<T>
impl<T> !UnwindSafe for TypedInputStorage<T>
impl<T> Freeze for TypedInputStorage<T>
impl<T> Unpin for TypedInputStorage<T>
impl<T> UnsafeUnpin for TypedInputStorage<T>
Blanket Implementations§
impl<Token, Builder, How> AllPropsFor<Builder, How> for Tokenwhere
Builder: Buildable<Token>,
<Builder as Buildable<Token>>::WrappedToken: HasAllProps<<Builder as Buildable<Token>>::Output, How>,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> HasAllProps<(), T> for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.