pub struct StyledGrapheme { /* private fields */ }Expand description
One grapheme, the width it occupies, and its logical style.
A renderer cannot split a grapheme cluster or a wide character, because it never sees text below this granularity, and it cannot disagree with the layout pass about a width, because the width it needs is in the token.
Implementations§
Trait Implementations§
Source§impl Clone for StyledGrapheme
impl Clone for StyledGrapheme
Source§fn clone(&self) -> StyledGrapheme
fn clone(&self) -> StyledGrapheme
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 moreSource§impl Debug for StyledGrapheme
impl Debug for StyledGrapheme
Source§impl PartialEq for StyledGrapheme
impl PartialEq for StyledGrapheme
Source§fn eq(&self, other: &StyledGrapheme) -> bool
fn eq(&self, other: &StyledGrapheme) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for StyledGrapheme
impl StructuralPartialEq for StyledGrapheme
Auto Trait Implementations§
impl Freeze for StyledGrapheme
impl RefUnwindSafe for StyledGrapheme
impl Send for StyledGrapheme
impl Sync for StyledGrapheme
impl Unpin for StyledGrapheme
impl UnsafeUnpin for StyledGrapheme
impl UnwindSafe for StyledGrapheme
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