Struct Phenotype
pub struct Phenotype { /* private fields */ }Expand description
An ordered phenotype description.
Implementations§
§impl Phenotype
impl Phenotype
pub const fn new(traits: Vec<TraitValue>) -> Phenotype
pub const fn new(traits: Vec<TraitValue>) -> Phenotype
Creates a phenotype from caller-supplied trait order.
pub fn traits(&self) -> &[TraitValue]
pub fn traits(&self) -> &[TraitValue]
Returns trait values in caller-supplied order.
Trait Implementations§
§impl From<Vec<TraitValue>> for Phenotype
impl From<Vec<TraitValue>> for Phenotype
§fn from(traits: Vec<TraitValue>) -> Phenotype
fn from(traits: Vec<TraitValue>) -> Phenotype
Converts to this type from the input type.
§impl Ord for Phenotype
impl Ord for Phenotype
§impl PartialOrd for Phenotype
impl PartialOrd for Phenotype
impl Eq for Phenotype
impl StructuralPartialEq for Phenotype
Auto Trait Implementations§
impl Freeze for Phenotype
impl RefUnwindSafe for Phenotype
impl Send for Phenotype
impl Sync for Phenotype
impl Unpin for Phenotype
impl UnsafeUnpin for Phenotype
impl UnwindSafe for Phenotype
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