Enum CellStructure
pub enum CellStructure {
Organelle(CellOrganelle),
Custom(String),
}Expand description
A primitive cell structure reference.
Variants§
Implementations§
§impl CellStructure
impl CellStructure
pub fn custom(value: impl AsRef<str>) -> Result<CellStructure, CellNameError>
pub fn custom(value: impl AsRef<str>) -> Result<CellStructure, CellNameError>
Creates a custom structure label from non-empty text.
§Errors
Returns CellNameError::Empty when the trimmed label is empty.
Trait Implementations§
§impl Clone for CellStructure
impl Clone for CellStructure
§fn clone(&self) -> CellStructure
fn clone(&self) -> CellStructure
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 more§impl Debug for CellStructure
impl Debug for CellStructure
§impl Display for CellStructure
impl Display for CellStructure
§impl From<CellOrganelle> for CellStructure
impl From<CellOrganelle> for CellStructure
§fn from(organelle: CellOrganelle) -> CellStructure
fn from(organelle: CellOrganelle) -> CellStructure
Converts to this type from the input type.
§impl Hash for CellStructure
impl Hash for CellStructure
§impl Ord for CellStructure
impl Ord for CellStructure
§impl PartialEq for CellStructure
impl PartialEq for CellStructure
§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