pub struct TriangleId(/* private fields */);
Implementations§
Source§impl TriangleId
impl TriangleId
pub const INVALID: TriangleId
pub fn get<'a, 'b>(&'a self, triangles: &'b TriangleStore) -> &'b InnerTriangle
pub fn try_get<'a, 'b>( &'a self, triangles: &'b TriangleStore, ) -> Option<&'b InnerTriangle>
pub fn as_usize(&self) -> usize
pub fn from_index(index: usize) -> Self
pub fn into_option(self) -> Option<Self>
Trait Implementations§
Source§impl Clone for TriangleId
impl Clone for TriangleId
Source§fn clone(&self) -> TriangleId
fn clone(&self) -> TriangleId
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TriangleId
impl Debug for TriangleId
Source§impl Hash for TriangleId
impl Hash for TriangleId
Source§impl Ord for TriangleId
impl Ord for TriangleId
Source§fn cmp(&self, other: &TriangleId) -> Ordering
fn cmp(&self, other: &TriangleId) -> Ordering
1.21.0 · 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 TriangleId
impl PartialEq for TriangleId
Source§impl PartialOrd for TriangleId
impl PartialOrd for TriangleId
impl Copy for TriangleId
impl Eq for TriangleId
impl StructuralPartialEq for TriangleId
Auto Trait Implementations§
impl Freeze for TriangleId
impl RefUnwindSafe for TriangleId
impl Send for TriangleId
impl Sync for TriangleId
impl Unpin for TriangleId
impl UnwindSafe for TriangleId
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