pub struct ParagraphCluster {
pub start_index: usize,
pub end_index: usize,
pub line_index: usize,
pub rect: LayoutRect,
pub is_rtl: bool,
}Expand description
One visually positioned shaping cluster. Byte ranges always fall on UTF-8 boundaries and may contain more than one scalar value (for example a ligature, combining sequence, or emoji ZWJ sequence).
Fields§
§start_index: usize§end_index: usize§line_index: usize§rect: LayoutRect§is_rtl: boolTrait Implementations§
Source§impl Clone for ParagraphCluster
impl Clone for ParagraphCluster
Source§fn clone(&self) -> ParagraphCluster
fn clone(&self) -> ParagraphCluster
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 ParagraphCluster
Source§impl Debug for ParagraphCluster
impl Debug for ParagraphCluster
Source§impl<'de> Deserialize<'de> for ParagraphCluster
impl<'de> Deserialize<'de> for ParagraphCluster
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ParagraphCluster
impl PartialEq for ParagraphCluster
Source§impl Serialize for ParagraphCluster
impl Serialize for ParagraphCluster
impl StructuralPartialEq for ParagraphCluster
Auto Trait Implementations§
impl Freeze for ParagraphCluster
impl RefUnwindSafe for ParagraphCluster
impl Send for ParagraphCluster
impl Sync for ParagraphCluster
impl Unpin for ParagraphCluster
impl UnsafeUnpin for ParagraphCluster
impl UnwindSafe for ParagraphCluster
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