pub struct CorticalArea {
pub cortical_id: CorticalID,
pub cortical_idx: u32,
pub name: String,
pub dimensions: CorticalAreaDimensions,
pub position: GenomeCoordinate3D,
pub cortical_type: CorticalAreaType,
pub properties: HashMap<String, Value>,
}Expand description
Cortical area metadata (genome representation)
Pure data structure containing static genome metadata. Runtime operations and transformations are implemented in feagi-bdu.
Fields§
§cortical_id: CorticalIDUnique typed cortical identifier
cortical_idx: u32Integer index assigned by ConnectomeManager
name: StringHuman-readable name
dimensions: CorticalAreaDimensions3D dimensions (width, height, depth in voxels)
position: GenomeCoordinate3D3D position in genome space
cortical_type: CorticalAreaTypeCortical area type (encoding method and functional classification)
properties: HashMap<String, Value>Additional user-defined properties Note: See PROPERTIES_STRUCT_MIGRATION_PROPOSAL.md for future struct-based design
Implementations§
Source§impl CorticalArea
impl CorticalArea
Sourcepub fn new(
cortical_id: CorticalID,
cortical_idx: u32,
name: String,
dimensions: CorticalAreaDimensions,
position: GenomeCoordinate3D,
cortical_type: CorticalAreaType,
) -> Result<Self, FeagiDataError>
pub fn new( cortical_id: CorticalID, cortical_idx: u32, name: String, dimensions: CorticalAreaDimensions, position: GenomeCoordinate3D, cortical_type: CorticalAreaType, ) -> Result<Self, FeagiDataError>
Create a new cortical area with validation
§Arguments
cortical_id- Unique typed cortical identifiercortical_idx- Integer index for fast lookupsname- Human-readable namedimensions- 3D dimensions (width, height, depth)position- 3D position in genome spacecortical_type- Cortical area type (encoding method)
§Errors
Returns error if name is empty
Sourcepub fn get_property(&self, key: &str) -> Option<&Value>
pub fn get_property(&self, key: &str) -> Option<&Value>
Get a property value by key
Sourcepub fn total_voxels(&self) -> u32
pub fn total_voxels(&self) -> u32
Get the total number of voxels in this area
Trait Implementations§
Source§impl Clone for CorticalArea
impl Clone for CorticalArea
Source§fn clone(&self) -> CorticalArea
fn clone(&self) -> CorticalArea
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CorticalArea
impl Debug for CorticalArea
Source§impl<'de> Deserialize<'de> for CorticalArea
impl<'de> Deserialize<'de> for CorticalArea
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CorticalArea
impl RefUnwindSafe for CorticalArea
impl Send for CorticalArea
impl Sync for CorticalArea
impl Unpin for CorticalArea
impl UnsafeUnpin for CorticalArea
impl UnwindSafe for CorticalArea
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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