pub struct VertexBase<T: Copy> {
pub x: T,
pub y: T,
pub cmd: u32,
}Expand description
A vertex with coordinates and a path command.
Port of C++ vertex_base<T>.
Fields§
§x: T§y: T§cmd: u32Implementations§
Trait Implementations§
Source§impl<T: Clone + Copy> Clone for VertexBase<T>
impl<T: Clone + Copy> Clone for VertexBase<T>
Source§fn clone(&self) -> VertexBase<T>
fn clone(&self) -> VertexBase<T>
Returns a duplicate 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 moreimpl<T: Copy + Copy> Copy for VertexBase<T>
impl<T: Copy> StructuralPartialEq for VertexBase<T>
Auto Trait Implementations§
impl<T> Freeze for VertexBase<T>where
T: Freeze,
impl<T> RefUnwindSafe for VertexBase<T>where
T: RefUnwindSafe,
impl<T> Send for VertexBase<T>where
T: Send,
impl<T> Sync for VertexBase<T>where
T: Sync,
impl<T> Unpin for VertexBase<T>where
T: Unpin,
impl<T> UnwindSafe for VertexBase<T>where
T: UnwindSafe,
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