pub struct SecureField(/* private fields */);Expand description
A secure text entry field for passwords and sensitive data.
SecureField masks input and securely stores values with automatic memory zeroing.
§Layout Behavior
SecureField expands horizontally to fill available space, but has a fixed height.
In an HStack, it will take up all remaining width after other views are sized.
Implementations§
Trait Implementations§
Source§impl ConfigurableView for SecureField
impl ConfigurableView for SecureField
Source§impl From<SecureFieldConfig> for SecureField
impl From<SecureFieldConfig> for SecureField
Source§fn from(value: SecureFieldConfig) -> Self
fn from(value: SecureFieldConfig) -> Self
Converts to this type from the input type.
Source§impl View for SecureField
impl View for SecureField
Auto Trait Implementations§
impl Freeze for SecureField
impl !RefUnwindSafe for SecureField
impl !Send for SecureField
impl !Sync for SecureField
impl Unpin for SecureField
impl !UnwindSafe for SecureField
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more