Struct ttf_parser::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 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl 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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ScriptMetrics) -> bool
fn ne(&self, other: &ScriptMetrics) -> bool
This method tests for !=
.
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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