Struct edge_frame::field::Field
source · [−]pub struct Field<R, S> { /* private fields */ }Implementations
sourceimpl<R, S> Field<R, S> where
R: Default + Clone + PartialEq + 'static,
S: Clone,
impl<R, S> Field<R, S> where
R: Default + Clone + PartialEq + 'static,
S: Clone,
pub fn new(
converter: impl Fn(Event) -> R + 'static,
validate: impl Fn(R) -> Result<S, String> + 'static
) -> Self
pub fn is_dirty(&self) -> bool
pub fn update(&mut self, raw_value: R)
pub fn value(&self) -> Option<S>
pub fn raw_value(&self) -> R
pub fn has_errors(&self) -> bool
pub fn error(&self) -> Option<String>
pub fn error_str(&self) -> String
pub fn change<V>(&self) -> impl Fn(V) where
V: Into<Event>,
pub fn on_change(&self, event: Event)
Trait Implementations
Auto Trait Implementations
impl<R, S> !RefUnwindSafe for Field<R, S>
impl<R, S> !Send for Field<R, S>
impl<R, S> !Sync for Field<R, S>
impl<R, S> Unpin for Field<R, S> where
R: Unpin,
impl<R, S> !UnwindSafe for Field<R, S>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
sourcefn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert self to a value of a Properties struct.
sourceimpl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
sourcefn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert self to a value of a Properties struct.