pub struct PasswordVisualTransformation {
pub mask: char,
}Expand description
A VisualTransformation that masks all characters with a given character.
Matches Compose’s PasswordVisualTransformation.
Fields§
§mask: charThe replacement character (default • U+2022, to match compose, was *).
Trait Implementations§
Source§impl Clone for PasswordVisualTransformation
impl Clone for PasswordVisualTransformation
Source§fn clone(&self) -> PasswordVisualTransformation
fn clone(&self) -> PasswordVisualTransformation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PasswordVisualTransformation
Source§impl Debug for PasswordVisualTransformation
impl Debug for PasswordVisualTransformation
Source§impl VisualTransformation for PasswordVisualTransformation
impl VisualTransformation for PasswordVisualTransformation
Source§fn filter(&self, text: &AnnotatedString) -> TransformedText
fn filter(&self, text: &AnnotatedString) -> TransformedText
Transform the text for display. Takes the original
AnnotatedString and returns
the transformed TransformedText with an offset mapping.Auto Trait Implementations§
impl Freeze for PasswordVisualTransformation
impl RefUnwindSafe for PasswordVisualTransformation
impl Send for PasswordVisualTransformation
impl Sync for PasswordVisualTransformation
impl Unpin for PasswordVisualTransformation
impl UnsafeUnpin for PasswordVisualTransformation
impl UnwindSafe for PasswordVisualTransformation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more