pub struct ControlPointId(pub u32);Available on crate feature
canvas only.Expand description
ID of a control point in a path.
Tuple Fields§
§0: u32Implementations§
Source§impl ControlPointId
impl ControlPointId
pub const INVALID: ControlPointId
pub fn offset(self) -> usize
pub fn to_usize(self) -> usize
pub fn from_usize(val: usize) -> ControlPointId
Trait Implementations§
Source§impl Clone for ControlPointId
impl Clone for ControlPointId
Source§fn clone(&self) -> ControlPointId
fn clone(&self) -> ControlPointId
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 moreSource§impl Debug for ControlPointId
impl Debug for ControlPointId
Source§impl Hash for ControlPointId
impl Hash for ControlPointId
Source§impl<'l, Endpoint, ControlPoint> Index<ControlPointId> for CommandsPathSlice<'l, Endpoint, ControlPoint>
impl<'l, Endpoint, ControlPoint> Index<ControlPointId> for CommandsPathSlice<'l, Endpoint, ControlPoint>
Source§fn index(&self, id: ControlPointId) -> &ControlPoint
fn index(&self, id: ControlPointId) -> &ControlPoint
Performs the indexing (
container[index]) operation. Read moreSource§impl Index<ControlPointId> for Path
impl Index<ControlPointId> for Path
Source§fn index(&self, id: ControlPointId) -> &Point2D<f32, UnknownUnit>
fn index(&self, id: ControlPointId) -> &Point2D<f32, UnknownUnit>
Performs the indexing (
container[index]) operation. Read moreSource§impl<'l> Index<ControlPointId> for PathSlice<'l>
impl<'l> Index<ControlPointId> for PathSlice<'l>
Source§fn index(&self, id: ControlPointId) -> &Point2D<f32, UnknownUnit>
fn index(&self, id: ControlPointId) -> &Point2D<f32, UnknownUnit>
Performs the indexing (
container[index]) operation. Read moreSource§impl PartialEq for ControlPointId
impl PartialEq for ControlPointId
impl Copy for ControlPointId
impl Eq for ControlPointId
impl StructuralPartialEq for ControlPointId
Auto Trait Implementations§
impl Freeze for ControlPointId
impl RefUnwindSafe for ControlPointId
impl Send for ControlPointId
impl Sync for ControlPointId
impl Unpin for ControlPointId
impl UnsafeUnpin for ControlPointId
impl UnwindSafe for ControlPointId
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.