pub struct TransformedText {
pub text: AnnotatedString,
pub offset_mapping: Box<dyn OffsetMapping>,
}Expand description
Output of VisualTransformation::filter.
Fields§
§text: AnnotatedString§offset_mapping: Box<dyn OffsetMapping>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 Forget for TransformedText
impl Freeze for TransformedTextwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ArcInner<[TextSpan]> is !null: Freeze,
PhantomData<ArcInner<[TextSpan]>>: Freeze,
*const dyn OffsetMapping is !null: Freeze,
PhantomData<dyn OffsetMapping>: Freeze,
impl Move for TransformedText
impl Send for TransformedText
impl Sync for TransformedText
impl Unpin for TransformedText
impl UnsafeUnpin for TransformedTextwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<[TextSpan]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[TextSpan]>>: UnsafeUnpin,
*const dyn OffsetMapping is !null: UnsafeUnpin,
PhantomData<dyn OffsetMapping>: UnsafeUnpin,
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