pub enum InconsistentNeuronError {
MultipleRoots,
Disconnected,
NoRootError,
MissingSample(MissingSampleError),
DuplicateSample(SampleId),
}
Expand description
Error where a neuron represented by a SWC file is inconsistent.
Variants§
MultipleRoots
Neuron is not a tree as it has multiple roots (parentless nodes).
Disconnected
Neuron is not a tree as it has several disconnected parts.
NoRootError
Neuron has no root: it could be empty or be cyclic.
MissingSample(MissingSampleError)
Samples refer to unknown parent samples.
DuplicateSample(SampleId)
Samples have clashing IDs.
Trait Implementations§
Source§impl Debug for InconsistentNeuronError
impl Debug for InconsistentNeuronError
Source§impl Display for InconsistentNeuronError
impl Display for InconsistentNeuronError
Source§impl Error for InconsistentNeuronError
impl Error for InconsistentNeuronError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<MissingSampleError> for InconsistentNeuronError
impl From<MissingSampleError> for InconsistentNeuronError
Source§fn from(source: MissingSampleError) -> Self
fn from(source: MissingSampleError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InconsistentNeuronError
impl RefUnwindSafe for InconsistentNeuronError
impl Send for InconsistentNeuronError
impl Sync for InconsistentNeuronError
impl Unpin for InconsistentNeuronError
impl UnwindSafe for InconsistentNeuronError
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