[−][src]Struct swc_neuron::SwcNeuron
Fields
samples: Vec<SwcSample<S>>
header: Option<H>
Implementations
impl<S: StructureIdentifier, H: Header> SwcNeuron<S, H>
[src]
pub fn sort_index(self) -> Self
[src]
Sort the neuron's samples by their index.
pub fn reindex(self) -> Result<Self, MissingSampleError>
[src]
Re-index the neuron's samples in order of occurrence, starting at 1. Returns error if the SWC is missing a parent sample
pub fn sort_topo(self, reindex: bool) -> Result<Self, InconsistentNeuronError>
[src]
Re-order its samples in pre-order depth first search. Children are visited in the order of their original sample number.
Returns an error if the neuron is not a self-consistent tree.
pub fn from_reader<R: Read>(reader: R) -> Result<Self, SwcParseError>
[src]
pub fn to_writer<W: Write>(&self, writer: &mut W) -> Result<(), Error>
[src]
pub fn replace_header(&mut self, header: Option<H>) -> Option<H>
[src]
Replace the existing header with a new one, returning the existing.
Trait Implementations
impl<S: Clone + StructureIdentifier, H: Clone + Header> Clone for SwcNeuron<S, H>
[src]
impl<S: Debug + StructureIdentifier, H: Debug + Header> Debug for SwcNeuron<S, H>
[src]
impl<S: StructureIdentifier, H: Header> FromIterator<SwcSample<S>> for SwcNeuron<S, H>
[src]
pub fn from_iter<I: IntoIterator<Item = SwcSample<S>>>(iter: I) -> Self
[src]
Auto Trait Implementations
impl<S, H> RefUnwindSafe for SwcNeuron<S, H> where
H: RefUnwindSafe,
S: RefUnwindSafe,
H: RefUnwindSafe,
S: RefUnwindSafe,
impl<S, H> Send for SwcNeuron<S, H> where
H: Send,
S: Send,
H: Send,
S: Send,
impl<S, H> Sync for SwcNeuron<S, H> where
H: Sync,
S: Sync,
H: Sync,
S: Sync,
impl<S, H> Unpin for SwcNeuron<S, H> where
H: Unpin,
S: Unpin,
H: Unpin,
S: Unpin,
impl<S, H> UnwindSafe for SwcNeuron<S, H> where
H: UnwindSafe,
S: UnwindSafe,
H: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,