pub struct GlyphPlacement {
pub resource_key: String,
pub metrics: GlyphMetrics,
pub x_mm: f32,
pub y_mm: f32,
pub priority: u8,
}Expand description
A positioned print glyph with a deterministic collision priority.
Fields§
§resource_key: String§metrics: GlyphMetrics§x_mm: f32§y_mm: f32§priority: u8Higher-priority glyphs keep their requested position when possible.
Trait Implementations§
Source§impl Clone for GlyphPlacement
impl Clone for GlyphPlacement
Source§fn clone(&self) -> GlyphPlacement
fn clone(&self) -> GlyphPlacement
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 GlyphPlacement
impl Debug for GlyphPlacement
Source§impl<'de> Deserialize<'de> for GlyphPlacement
impl<'de> Deserialize<'de> for GlyphPlacement
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 GlyphPlacement
impl PartialEq for GlyphPlacement
Source§impl Serialize for GlyphPlacement
impl Serialize for GlyphPlacement
impl StructuralPartialEq for GlyphPlacement
Auto Trait Implementations§
impl Freeze for GlyphPlacement
impl RefUnwindSafe for GlyphPlacement
impl Send for GlyphPlacement
impl Sync for GlyphPlacement
impl Unpin for GlyphPlacement
impl UnsafeUnpin for GlyphPlacement
impl UnwindSafe for GlyphPlacement
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