Struct ttf_parser::os2::ScriptMetrics
source · [−]#[repr(C)]pub struct ScriptMetrics {
pub x_size: i16,
pub y_size: i16,
pub x_offset: i16,
pub y_offset: i16,
}
Expand description
A script metrics used by subscript and superscript.
Fields
x_size: i16
Horizontal face size.
y_size: i16
Vertical face size.
x_offset: i16
X offset.
y_offset: i16
Y offset.
Trait Implementations
sourceimpl Clone for ScriptMetrics
impl Clone for ScriptMetrics
sourcefn clone(&self) -> ScriptMetrics
fn clone(&self) -> ScriptMetrics
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ScriptMetrics
impl Debug for ScriptMetrics
sourceimpl Hash for ScriptMetrics
impl Hash for ScriptMetrics
sourceimpl PartialEq<ScriptMetrics> for ScriptMetrics
impl PartialEq<ScriptMetrics> for ScriptMetrics
sourcefn eq(&self, other: &ScriptMetrics) -> bool
fn eq(&self, other: &ScriptMetrics) -> bool
impl Copy for ScriptMetrics
impl Eq for ScriptMetrics
impl StructuralEq for ScriptMetrics
impl StructuralPartialEq for ScriptMetrics
Auto Trait Implementations
impl RefUnwindSafe for ScriptMetrics
impl Send for ScriptMetrics
impl Sync for ScriptMetrics
impl Unpin for ScriptMetrics
impl UnwindSafe for ScriptMetrics
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more