Struct material_yew::text_inputs::ValidityState
source · pub struct ValidityState { /* private fields */ }
Expand description
Rust type for validity props
Implementations§
source§impl ValidityState
impl ValidityState
sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new ValidityState
.
All the fields except valid
is set to false except valid
, which is
set to true
pub fn bad_input(&self) -> bool
pub fn custom_error(&self) -> bool
pub fn pattern_mismatch(&self) -> bool
pub fn range_overflow(&self) -> bool
pub fn range_underflow(&self) -> bool
pub fn too_long(&self) -> bool
pub fn too_short(&self) -> bool
pub fn type_mismatch(&self) -> bool
pub fn valid(&self) -> bool
pub fn value_missing(&self) -> bool
pub fn set_bad_input(&mut self, value: bool) -> &mut Self
pub fn set_custom_error(&mut self, value: bool) -> &mut Self
pub fn set_pattern_mismatch(&mut self, value: bool) -> &mut Self
pub fn set_range_overflow(&mut self, value: bool) -> &mut Self
pub fn set_range_underflow(&mut self, value: bool) -> &mut Self
pub fn set_too_long(&mut self, value: bool) -> &mut Self
pub fn set_too_short(&mut self, value: bool) -> &mut Self
pub fn set_type_mismatch(&mut self, value: bool) -> &mut Self
pub fn set_valid(&mut self, value: bool) -> &mut Self
pub fn set_value_missing(&mut self, value: bool) -> &mut Self
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ValidityState
impl Send for ValidityState
impl Sync for ValidityState
impl Unpin for ValidityState
impl UnwindSafe for ValidityState
Blanket Implementations§
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>
§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self
to a value of a Properties
struct.§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self
to a value of a Properties
struct.