pub trait InputStorage: Send + 'static {
const MASKED: bool;
// Required methods
fn as_str(&self) -> &str;
fn as_string_mut(&mut self) -> &mut String;
}
Expand description
A type that can be used as the storage of an Input
’s string value.
This crate implements this trait for these types:
String
Cow<'static, str>
CowString
MaskedString
Required Associated Constants§
Required Methods§
sourcefn as_string_mut(&mut self) -> &mut String
fn as_string_mut(&mut self) -> &mut String
Returns an exclusive reference to the contents as a String
.
Object Safety§
This trait is not object safe.