pub struct DragToolId(/* private fields */);Expand description
Stable identity for ImPlot drag point/line helpers.
This wraps the upstream int id parameter so safe Rust callers do not
confuse tool identities with coordinates, counts, or other signed values.
Implementations§
Trait Implementations§
Source§impl Clone for DragToolId
impl Clone for DragToolId
Source§fn clone(&self) -> DragToolId
fn clone(&self) -> DragToolId
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 DragToolId
Source§impl Debug for DragToolId
impl Debug for DragToolId
Source§impl Display for DragToolId
impl Display for DragToolId
impl Eq for DragToolId
Source§impl From<DragToolId> for i32
impl From<DragToolId> for i32
Source§fn from(value: DragToolId) -> Self
fn from(value: DragToolId) -> Self
Converts to this type from the input type.
Source§impl From<i32> for DragToolId
impl From<i32> for DragToolId
Source§impl Hash for DragToolId
impl Hash for DragToolId
Source§impl Ord for DragToolId
impl Ord for DragToolId
Source§fn cmp(&self, other: &DragToolId) -> Ordering
fn cmp(&self, other: &DragToolId) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DragToolId
impl PartialEq for DragToolId
Source§fn eq(&self, other: &DragToolId) -> bool
fn eq(&self, other: &DragToolId) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for DragToolId
impl PartialOrd for DragToolId
impl StructuralPartialEq for DragToolId
Auto Trait Implementations§
impl Freeze for DragToolId
impl RefUnwindSafe for DragToolId
impl Send for DragToolId
impl Sync for DragToolId
impl Unpin for DragToolId
impl UnsafeUnpin for DragToolId
impl UnwindSafe for DragToolId
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