pub struct Phenotype { /* private fields */ }Expand description
An ordered phenotype description.
Implementations§
Source§impl Phenotype
impl Phenotype
Sourcepub const fn new(traits: Vec<TraitValue>) -> Self
pub const fn new(traits: Vec<TraitValue>) -> Self
Creates a phenotype from caller-supplied trait order.
Sourcepub fn traits(&self) -> &[TraitValue]
pub fn traits(&self) -> &[TraitValue]
Returns trait values in caller-supplied order.
Trait Implementations§
Source§impl From<Vec<TraitValue>> for Phenotype
impl From<Vec<TraitValue>> for Phenotype
Source§fn from(traits: Vec<TraitValue>) -> Self
fn from(traits: Vec<TraitValue>) -> Self
Converts to this type from the input type.
Source§impl Ord for Phenotype
impl Ord for Phenotype
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 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