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
.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.