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 coordinate.
y: i16
Y coordinate.
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
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)