#[non_exhaustive]pub enum SimplexCountField {
Vertices,
Edges,
Triangles,
}Expand description
CDT simplex-count field with a strictly positive triangulation-state invariant.
Use this with CdtError::InvalidSimplexCount when converting raw backend
counts into an invariant-bearing CDT count snapshot.
§Examples
use causal_triangulations::prelude::errors::SimplexCountField;
assert_eq!(SimplexCountField::Triangles.to_string(), "triangles");Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for SimplexCountField
impl Clone for SimplexCountField
Source§fn clone(&self) -> SimplexCountField
fn clone(&self) -> SimplexCountField
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 moreSource§impl Debug for SimplexCountField
impl Debug for SimplexCountField
Source§impl Display for SimplexCountField
impl Display for SimplexCountField
Source§impl Hash for SimplexCountField
impl Hash for SimplexCountField
Source§impl PartialEq for SimplexCountField
impl PartialEq for SimplexCountField
Source§fn eq(&self, other: &SimplexCountField) -> bool
fn eq(&self, other: &SimplexCountField) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SimplexCountField
impl Eq for SimplexCountField
impl StructuralPartialEq for SimplexCountField
Auto Trait Implementations§
impl Freeze for SimplexCountField
impl RefUnwindSafe for SimplexCountField
impl Send for SimplexCountField
impl Sync for SimplexCountField
impl Unpin for SimplexCountField
impl UnsafeUnpin for SimplexCountField
impl UnwindSafe for SimplexCountField
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