pub struct Bp3dHierarchy { /* private fields */ }Expand description
The BodyParts3D part-of hierarchy: id→name and part→wholes, for resolving a structure to its system(s).
Implementations§
Source§impl Bp3dHierarchy
impl Bp3dHierarchy
Sourcepub fn from_mapping(parts_list_txt: &str, part_of_txt: &str) -> Self
pub fn from_mapping(parts_list_txt: &str, part_of_txt: &str) -> Self
Build from the two mapping files’ text: parts_list_e.txt (id→name) and
conventional_part_of.txt (each row: whole id — its part id). Header rows are skipped.
Sourcepub fn wholes_of(&self, id: &str) -> &[String]
pub fn wholes_of(&self, id: &str) -> &[String]
The direct part-of parents (wholes) of a structure — the immediate partOf edges for the
ontology (as opposed to systems_for, which walks all the way to a system).
Sourcepub fn systems_for(&self, id: &str) -> Vec<&'static str>
pub fn systems_for(&self, id: &str) -> Vec<&'static str>
The body system(s) a structure belongs to — walk part→whole up to the system roots. A structure can reach several roots (the diaphragm is muscular and respiratory), so all are returned, sorted for determinism. Empty if it reaches no system (abstract / immaterial nodes).
Auto Trait Implementations§
impl Freeze for Bp3dHierarchy
impl RefUnwindSafe for Bp3dHierarchy
impl Send for Bp3dHierarchy
impl Sync for Bp3dHierarchy
impl Unpin for Bp3dHierarchy
impl UnsafeUnpin for Bp3dHierarchy
impl UnwindSafe for Bp3dHierarchy
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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