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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more