Struct read_fonts::tables::glyf::CurvePoint
source · pub struct CurvePoint {
pub x: i16,
pub y: i16,
pub on_curve: bool,
}
Expand description
Point with an associated on-curve flag in a simple glyph.
This type is a simpler representation of the data in the blob.
Fields§
§x: i16
X cooordinate.
y: i16
Y cooordinate.
on_curve: bool
True if this is an on-curve point.
Implementations§
Trait Implementations§
source§impl Clone for CurvePoint
impl Clone for CurvePoint
source§fn clone(&self) -> CurvePoint
fn clone(&self) -> CurvePoint
Returns a copy 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 CurvePoint
impl Debug for CurvePoint
source§impl PartialEq for CurvePoint
impl PartialEq for CurvePoint
source§fn eq(&self, other: &CurvePoint) -> bool
fn eq(&self, other: &CurvePoint) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for CurvePoint
impl Eq for CurvePoint
impl StructuralPartialEq for CurvePoint
Auto Trait Implementations§
impl Freeze for CurvePoint
impl RefUnwindSafe for CurvePoint
impl Send for CurvePoint
impl Sync for CurvePoint
impl Unpin for CurvePoint
impl UnwindSafe for CurvePoint
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