pub struct IdentityVisualTransformation;Expand description
A VisualTransformation that displays text as-is (identity).
Equivalent to Compose’s VisualTransformation.None.
Trait Implementations§
Source§impl Clone for IdentityVisualTransformation
impl Clone for IdentityVisualTransformation
Source§fn clone(&self) -> IdentityVisualTransformation
fn clone(&self) -> IdentityVisualTransformation
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 IdentityVisualTransformation
Source§impl Debug for IdentityVisualTransformation
impl Debug for IdentityVisualTransformation
Source§impl VisualTransformation for IdentityVisualTransformation
impl VisualTransformation for IdentityVisualTransformation
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 IdentityVisualTransformation
impl RefUnwindSafe for IdentityVisualTransformation
impl Send for IdentityVisualTransformation
impl Sync for IdentityVisualTransformation
impl Unpin for IdentityVisualTransformation
impl UnsafeUnpin for IdentityVisualTransformation
impl UnwindSafe for IdentityVisualTransformation
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