Struct VisualTextCharacter
pub struct VisualTextCharacter {
pub scalar: u32,
pub style: TextStyle,
pub source_index: u32,
}Expand description
One character accepted by vanilla’s FormattedCharSink in visual order.
Fields§
§scalar: u32Unicode scalar value, including shaping and mirroring applied by the client.
style: TextStyleFull effective style, including click, hover and font information.
source_index: u32UTF-16 offset within the sink’s current directional/style run. This is not a global component offset; it restarts for each run.
Trait Implementations§
§impl Clone for VisualTextCharacter
impl Clone for VisualTextCharacter
§fn clone(&self) -> VisualTextCharacter
fn clone(&self) -> VisualTextCharacter
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 more§impl Debug for VisualTextCharacter
impl Debug for VisualTextCharacter
§impl PartialEq for VisualTextCharacter
impl PartialEq for VisualTextCharacter
impl StructuralPartialEq for VisualTextCharacter
Auto Trait Implementations§
impl Freeze for VisualTextCharacter
impl RefUnwindSafe for VisualTextCharacter
impl Send for VisualTextCharacter
impl Sync for VisualTextCharacter
impl Unpin for VisualTextCharacter
impl UnsafeUnpin for VisualTextCharacter
impl UnwindSafe for VisualTextCharacter
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