pub struct TriangleCount { /* private fields */ }Expand description
The number of triangles in one object’s mesh, with evidence.
Implementations§
Source§impl TriangleCount
impl TriangleCount
Sourcepub fn try_new(
object: ObjectId,
triangles: u64,
evidence: Evidence,
) -> Result<Self, TriangleCountError>
pub fn try_new( object: ObjectId, triangles: u64, evidence: Evidence, ) -> Result<Self, TriangleCountError>
triangles in the mesh of object. The evidence must name where
the count comes from; it is exact when the mesh is the object’s
exact shape.
Sourcepub fn triangles(&self) -> u64
pub fn triangles(&self) -> u64
The number of triangles in the host’s mesh; zero for an object the host declared bodiless.
Trait Implementations§
Source§impl Clone for TriangleCount
impl Clone for TriangleCount
Source§impl Debug for TriangleCount
impl Debug for TriangleCount
impl Eq for TriangleCount
Source§impl PartialEq for TriangleCount
impl PartialEq for TriangleCount
impl StructuralPartialEq for TriangleCount
Auto Trait Implementations§
impl Freeze for TriangleCount
impl RefUnwindSafe for TriangleCount
impl Send for TriangleCount
impl Sync for TriangleCount
impl Unpin for TriangleCount
impl UnsafeUnpin for TriangleCount
impl UnwindSafe for TriangleCount
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