pub struct PasswordOffsetMapping { /* private fields */ }Expand description
Char-index offset mapping for masked text: the Nth original char maps to
the Nth mask char (byte offsets differ when widths differ, e.g. a\U0001F44D
(5B) masked to \u{2022}\u{2022} (6B)). Identity mapping here silently
mis-placed carets mid-mask-char for non-BMP input.
Implementations§
Trait Implementations§
Source§impl Clone for PasswordOffsetMapping
impl Clone for PasswordOffsetMapping
Source§fn clone(&self) -> PasswordOffsetMapping
fn clone(&self) -> PasswordOffsetMapping
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 moreSource§impl Debug for PasswordOffsetMapping
impl Debug for PasswordOffsetMapping
Source§impl OffsetMapping for PasswordOffsetMapping
impl OffsetMapping for PasswordOffsetMapping
fn original_to_transformed(&self, offset: usize) -> usize
fn transformed_to_original(&self, offset: usize) -> usize
fn clone_box(&self) -> Box<dyn OffsetMapping>
Auto Trait Implementations§
impl Freeze for PasswordOffsetMapping
impl RefUnwindSafe for PasswordOffsetMapping
impl Send for PasswordOffsetMapping
impl Sync for PasswordOffsetMapping
impl Unpin for PasswordOffsetMapping
impl UnsafeUnpin for PasswordOffsetMapping
impl UnwindSafe for PasswordOffsetMapping
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