pub enum Placed<'a> {
Glyph {
node: NodeId,
font: &'a FontRef,
glyph_id: GlyphId,
x: Length,
y: Length,
source: Option<SourceRange>,
},
Rule {
node: NodeId,
x: Length,
y: Length,
width: Length,
height: Length,
source: Option<SourceRange>,
},
}Expand description
A drawable item from Fragment::flatten, lengths absolute from the surface top left, y down.
Variants§
Glyph
One glyph, (x, y) is its origin on the baseline.
Fields
§
source: Option<SourceRange>The glyph’s cluster range, or the run’s primary source.
Rule
One filled rectangle, (x, y) is its top left corner.
Trait Implementations§
impl<'a> Copy for Placed<'a>
impl<'a> StructuralPartialEq for Placed<'a>
Auto Trait Implementations§
impl<'a> Freeze for Placed<'a>
impl<'a> RefUnwindSafe for Placed<'a>
impl<'a> Send for Placed<'a>
impl<'a> Sync for Placed<'a>
impl<'a> Unpin for Placed<'a>
impl<'a> UnsafeUnpin for Placed<'a>
impl<'a> UnwindSafe for Placed<'a>
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