pub enum Reconstruction {
Surface(Box<ReconstructionOutcome>),
Refused(ReconstructionRefusal),
}Expand description
Either a reconstruction or a typed reason there is none.
Deliberately not Option<TriMesh>: an absent surface always has a
reason, and this type makes the reason impossible to drop.
Variants§
Surface(Box<ReconstructionOutcome>)
A surface was produced.
Refused(ReconstructionRefusal)
No surface was produced, for this stated reason.
Implementations§
Source§impl Reconstruction
impl Reconstruction
Sourcepub fn outcome(&self) -> Option<&ReconstructionOutcome>
pub fn outcome(&self) -> Option<&ReconstructionOutcome>
The outcome, if one was produced.
Sourcepub fn refusal(&self) -> Option<&ReconstructionRefusal>
pub fn refusal(&self) -> Option<&ReconstructionRefusal>
The refusal, if there was one.
Sourcepub fn is_surface(&self) -> bool
pub fn is_surface(&self) -> bool
Whether a surface was produced.
Trait Implementations§
Source§impl Clone for Reconstruction
impl Clone for Reconstruction
Source§fn clone(&self) -> Reconstruction
fn clone(&self) -> Reconstruction
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 Reconstruction
impl Debug for Reconstruction
Source§impl PartialEq for Reconstruction
impl PartialEq for Reconstruction
impl StructuralPartialEq for Reconstruction
Auto Trait Implementations§
impl Freeze for Reconstruction
impl RefUnwindSafe for Reconstruction
impl Send for Reconstruction
impl Sync for Reconstruction
impl Unpin for Reconstruction
impl UnwindSafe for Reconstruction
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