pub struct ShapedText {
pub glyphs: Vec<PositionedGlyph>,
}Expand description
Shaped text result.
Fields§
§glyphs: Vec<PositionedGlyph>Glyphs in visual order.
Implementations§
Source§impl ShapedText
impl ShapedText
Sourcepub fn new(glyphs: impl Into<Vec<PositionedGlyph>>) -> Self
pub fn new(glyphs: impl Into<Vec<PositionedGlyph>>) -> Self
Construct a ShapedText from a glyph vec.
Trait Implementations§
Source§impl Clone for ShapedText
impl Clone for ShapedText
Source§impl Debug for ShapedText
impl Debug for ShapedText
Source§impl Default for ShapedText
impl Default for ShapedText
impl Eq for ShapedText
Source§impl PartialEq for ShapedText
impl PartialEq for ShapedText
impl StructuralPartialEq for ShapedText
Auto Trait Implementations§
impl Freeze for ShapedText
impl RefUnwindSafe for ShapedText
impl Send for ShapedText
impl Sync for ShapedText
impl Unpin for ShapedText
impl UnsafeUnpin for ShapedText
impl UnwindSafe for ShapedText
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