pub struct ShapePoint {
pub x: Coord,
pub y: Coord,
}Expand description
One point of a polygon(), from the top left of the margin box.
Fields§
§x: CoordAcross the box.
y: CoordDown the box.
Trait Implementations§
Source§impl Clone for ShapePoint
impl Clone for ShapePoint
Source§fn clone(&self) -> ShapePoint
fn clone(&self) -> ShapePoint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ShapePoint
Source§impl Debug for ShapePoint
impl Debug for ShapePoint
Source§impl PartialEq for ShapePoint
impl PartialEq for ShapePoint
Source§impl Serialize for ShapePoint
impl Serialize for ShapePoint
impl StructuralPartialEq for ShapePoint
Auto Trait Implementations§
impl Freeze for ShapePoint
impl RefUnwindSafe for ShapePoint
impl Send for ShapePoint
impl Sync for ShapePoint
impl Unpin for ShapePoint
impl UnsafeUnpin for ShapePoint
impl UnwindSafe for ShapePoint
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.