pub struct SwcSample<S: StructureIdentifier> {
pub sample_id: SampleId,
pub structure: S,
pub x: Precision,
pub y: Precision,
pub z: Precision,
pub radius: Precision,
pub parent_id: Option<SampleId>,
}
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: SampleId
ID of the SWC sample
structure: S
SWC structure enum
x: Precision
X location
y: Precision
Y location
z: Precision
Z location
radius: Precision
Radius of the neuron at this sample
parent_id: Option<SampleId>
ID of the parent sample (None if this is the root)
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> Freeze for SwcSample<S>where
S: Freeze,
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