#[non_exhaustive]pub enum SurfaceKind {
Orientable {
genus: u32,
},
NonOrientable {
crosscaps: u32,
},
}Expand description
Which closed surface a component is, with its boundary loops filled in.
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.
Orientable
An orientable surface of genus genus: a sphere is 0, a torus 1.
NonOrientable
A non-orientable surface with crosscaps crosscaps: a projective
plane or Möbius strip is 1, a Klein bottle 2.
Trait Implementations§
Source§impl Clone for SurfaceKind
impl Clone for SurfaceKind
Source§fn clone(&self) -> SurfaceKind
fn clone(&self) -> SurfaceKind
Returns a copy 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 SurfaceKind
impl Debug for SurfaceKind
Source§impl PartialEq for SurfaceKind
impl PartialEq for SurfaceKind
impl Copy for SurfaceKind
impl Eq for SurfaceKind
impl StructuralPartialEq for SurfaceKind
Auto Trait Implementations§
impl Freeze for SurfaceKind
impl RefUnwindSafe for SurfaceKind
impl Send for SurfaceKind
impl Sync for SurfaceKind
impl Unpin for SurfaceKind
impl UnwindSafe for SurfaceKind
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