pub struct ShapedGlyph {
pub cluster: u32,
pub glyph_id: u32,
pub safe_to_insert_tatweel: bool,
pub unsafe_to_break: bool,
pub unsafe_to_concat: bool,
pub x_advance: SafeInteger,
pub x_offset: SafeInteger,
pub y_advance: SafeInteger,
pub y_offset: SafeInteger,
}Expand description
One shaped glyph in logical buffer order.
Fields§
§cluster: u32UTF-8 scalar-start byte offset into ShapingInput.text, as assigned by push_str.
glyph_id: u32§safe_to_insert_tatweel: bool§unsafe_to_break: bool§unsafe_to_concat: bool§x_advance: SafeInteger§x_offset: SafeInteger§y_advance: SafeInteger§y_offset: SafeIntegerTrait Implementations§
Source§impl Clone for ShapedGlyph
impl Clone for ShapedGlyph
Source§fn clone(&self) -> ShapedGlyph
fn clone(&self) -> ShapedGlyph
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 ShapedGlyph
impl Debug for ShapedGlyph
Source§impl<'de> Deserialize<'de> for ShapedGlyph
impl<'de> Deserialize<'de> for ShapedGlyph
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 ShapedGlyph
impl PartialEq for ShapedGlyph
Source§impl Serialize for ShapedGlyph
impl Serialize for ShapedGlyph
impl StructuralPartialEq for ShapedGlyph
Auto Trait Implementations§
impl Freeze for ShapedGlyph
impl RefUnwindSafe for ShapedGlyph
impl Send for ShapedGlyph
impl Sync for ShapedGlyph
impl Unpin for ShapedGlyph
impl UnsafeUnpin for ShapedGlyph
impl UnwindSafe for ShapedGlyph
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