pub struct TransformedText {
pub text: AnnotatedString,
pub offset_mapping: Box<dyn OffsetMapping>,
}Expand description
The result of applying a VisualTransformation.
Fields§
§text: AnnotatedStringThe transformed text (annotated).
offset_mapping: Box<dyn OffsetMapping>Maps offsets between original and transformed text.
Implementations§
Source§impl TransformedText
impl TransformedText
pub fn new( text: AnnotatedString, offset_mapping: Box<dyn OffsetMapping>, ) -> Self
Trait Implementations§
Source§impl Clone for TransformedText
impl Clone for TransformedText
Auto Trait Implementations§
impl !RefUnwindSafe for TransformedText
impl !UnwindSafe for TransformedText
impl Freeze for TransformedText
impl Send for TransformedText
impl Sync 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