pub struct BiologicalSystem { /* private fields */ }Expand description
A descriptive biological system record.
Implementations§
Source§impl BiologicalSystem
impl BiologicalSystem
Sourcepub fn new(
name: impl AsRef<str>,
kind: BiologicalSystemKind,
) -> Result<Self, BiologicalSystemNameError>
pub fn new( name: impl AsRef<str>, kind: BiologicalSystemKind, ) -> Result<Self, BiologicalSystemNameError>
Creates a biological system from non-empty name text and a kind.
§Errors
Returns BiologicalSystemNameError::Empty when the trimmed name is empty.
Sourcepub const fn kind(&self) -> &BiologicalSystemKind
pub const fn kind(&self) -> &BiologicalSystemKind
Returns the system kind.
Trait Implementations§
Source§impl Clone for BiologicalSystem
impl Clone for BiologicalSystem
Source§fn clone(&self) -> BiologicalSystem
fn clone(&self) -> BiologicalSystem
Returns a duplicate of the value. Read more
1.0.0 · 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 BiologicalSystem
impl Debug for BiologicalSystem
Source§impl Display for BiologicalSystem
impl Display for BiologicalSystem
Source§impl Hash for BiologicalSystem
impl Hash for BiologicalSystem
Source§impl Ord for BiologicalSystem
impl Ord for BiologicalSystem
Source§fn cmp(&self, other: &BiologicalSystem) -> Ordering
fn cmp(&self, other: &BiologicalSystem) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for BiologicalSystem
impl PartialEq for BiologicalSystem
Source§impl PartialOrd for BiologicalSystem
impl PartialOrd for BiologicalSystem
impl Eq for BiologicalSystem
impl StructuralPartialEq for BiologicalSystem
Auto Trait Implementations§
impl Freeze for BiologicalSystem
impl RefUnwindSafe for BiologicalSystem
impl Send for BiologicalSystem
impl Sync for BiologicalSystem
impl Unpin for BiologicalSystem
impl UnsafeUnpin for BiologicalSystem
impl UnwindSafe for BiologicalSystem
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