pub struct TransformedText {
pub text: String,
pub offset_map: Rc<dyn Fn(usize) -> usize>,
}Expand description
The result of applying a VisualTransformation.
Fields§
§text: StringThe text to display (e.g., “•••••” for a password).
offset_map: Rc<dyn Fn(usize) -> usize>Maps an offset in text back to the original offset.
Trait Implementations§
Source§impl Clone for TransformedText
impl Clone for TransformedText
Auto Trait Implementations§
impl !RefUnwindSafe for TransformedText
impl !Send for TransformedText
impl !Sync for TransformedText
impl !UnwindSafe for TransformedText
impl Freeze for TransformedText
impl Unpin for TransformedText
impl UnsafeUnpin for TransformedText
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