pub(crate) struct HintedMetrics {
pub x_scale: i32,
pub edge_metrics: Option<EdgeMetrics>,
}
Fields§
§x_scale: i32
§edge_metrics: Option<EdgeMetrics>
This will be None
when we’ve identified fewer than two horizontal
edges in the outline. This will occur for empty outlines and outlines
that are degenerate (all x coordinates have the same value, within
a threshold). In these cases, horizontal metrics will not be adjusted.
Trait Implementations§
Source§impl Clone for HintedMetrics
impl Clone for HintedMetrics
Source§fn clone(&self) -> HintedMetrics
fn clone(&self) -> HintedMetrics
Returns a duplicate of the value. Read more
1.0.0 · 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 HintedMetrics
impl Debug for HintedMetrics
Source§impl Default for HintedMetrics
impl Default for HintedMetrics
Source§fn default() -> HintedMetrics
fn default() -> HintedMetrics
Returns the “default value” for a type. Read more
Source§impl PartialEq for HintedMetrics
impl PartialEq for HintedMetrics
impl Copy for HintedMetrics
impl StructuralPartialEq for HintedMetrics
Auto Trait Implementations§
impl Freeze for HintedMetrics
impl RefUnwindSafe for HintedMetrics
impl Send for HintedMetrics
impl Sync for HintedMetrics
impl Unpin for HintedMetrics
impl UnwindSafe for HintedMetrics
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