Struct swc_neuron::SwcSample
source · pub struct SwcSample<S: StructureIdentifier> {
pub sample_id: usize,
pub structure: S,
pub x: f64,
pub y: f64,
pub z: f64,
pub radius: f64,
pub parent_id: Option<usize>,
}Expand description
Struct representing a row of a SWC file (a single sample from the neuron), which gives information about a single node in the tree.
If the parent_id is None, this is a root node.
Fields§
§sample_id: usize§structure: S§x: f64§y: f64§z: f64§radius: f64§parent_id: Option<usize>Trait Implementations§
source§impl<S: StructureIdentifier, H: Header> FromIterator<SwcSample<S>> for SwcNeuron<S, H>
impl<S: StructureIdentifier, H: Header> FromIterator<SwcSample<S>> for SwcNeuron<S, H>
source§impl<S: StructureIdentifier> FromStr for SwcSample<S>
impl<S: StructureIdentifier> FromStr for SwcSample<S>
source§impl<S: StructureIdentifier> ToString for SwcSample<S>
impl<S: StructureIdentifier> ToString for SwcSample<S>
impl<S: Copy + StructureIdentifier> Copy for SwcSample<S>
Auto Trait Implementations§
impl<S> RefUnwindSafe for SwcSample<S>where S: RefUnwindSafe,
impl<S> Send for SwcSample<S>where S: Send,
impl<S> Sync for SwcSample<S>where S: Sync,
impl<S> Unpin for SwcSample<S>where S: Unpin,
impl<S> UnwindSafe for SwcSample<S>where S: UnwindSafe,
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