pub enum CellStructure {
Organelle(CellOrganelle),
Custom(String),
}Expand description
A primitive cell structure reference.
Variants§
Implementations§
Source§impl CellStructure
impl CellStructure
Sourcepub fn custom(value: impl AsRef<str>) -> Result<Self, CellNameError>
pub fn custom(value: impl AsRef<str>) -> Result<Self, CellNameError>
Creates a custom structure label from non-empty text.
§Errors
Returns CellNameError::Empty when the trimmed label is empty.
Trait Implementations§
Source§impl Clone for CellStructure
impl Clone for CellStructure
Source§fn clone(&self) -> CellStructure
fn clone(&self) -> CellStructure
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 CellStructure
impl Debug for CellStructure
Source§impl Display for CellStructure
impl Display for CellStructure
Source§impl From<CellOrganelle> for CellStructure
impl From<CellOrganelle> for CellStructure
Source§fn from(organelle: CellOrganelle) -> Self
fn from(organelle: CellOrganelle) -> Self
Converts to this type from the input type.
Source§impl Hash for CellStructure
impl Hash for CellStructure
Source§impl Ord for CellStructure
impl Ord for CellStructure
Source§fn cmp(&self, other: &CellStructure) -> Ordering
fn cmp(&self, other: &CellStructure) -> Ordering
1.21.0 (const: unstable) · 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 CellStructure
impl PartialEq for CellStructure
Source§fn eq(&self, other: &CellStructure) -> bool
fn eq(&self, other: &CellStructure) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for CellStructure
impl PartialOrd for CellStructure
impl Eq for CellStructure
impl StructuralPartialEq for CellStructure
Auto Trait Implementations§
impl Freeze for CellStructure
impl RefUnwindSafe for CellStructure
impl Send for CellStructure
impl Sync for CellStructure
impl Unpin for CellStructure
impl UnsafeUnpin for CellStructure
impl UnwindSafe for CellStructure
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