Struct OntogeneticStateHeader
#[repr(C)]pub struct OntogeneticStateHeader {
pub magic: [u8; 4],
pub version: u16,
pub stage: u8,
pub reserved_u8: u8,
pub entity_did_hash: u64,
pub taxon_iri_hash: u64,
pub energy_permill: u16,
pub damage_permill: u16,
pub hydration_permill: u16,
pub wear_permill: u16,
pub affordance_count: u32,
pub reserved_u32: u32,
}Expand description
Domain-neutral 40-byte ontogenetic and metabolic state header (EONT1 layout).
Fields§
§magic: [u8; 4]§version: u16§stage: u8§reserved_u8: u8§entity_did_hash: u64§taxon_iri_hash: u64§energy_permill: u16§damage_permill: u16§hydration_permill: u16§wear_permill: u16§affordance_count: u32§reserved_u32: u32Trait Implementations§
§impl Clone for OntogeneticStateHeader
impl Clone for OntogeneticStateHeader
§fn clone(&self) -> OntogeneticStateHeader
fn clone(&self) -> OntogeneticStateHeader
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 moreimpl Copy for OntogeneticStateHeader
§impl Debug for OntogeneticStateHeader
impl Debug for OntogeneticStateHeader
§impl Default for OntogeneticStateHeader
impl Default for OntogeneticStateHeader
§fn default() -> OntogeneticStateHeader
fn default() -> OntogeneticStateHeader
Returns the “default value” for a type. Read more
impl Eq for OntogeneticStateHeader
§impl PartialEq for OntogeneticStateHeader
impl PartialEq for OntogeneticStateHeader
impl Pod for OntogeneticStateHeader
impl StructuralPartialEq for OntogeneticStateHeader
Auto Trait Implementations§
impl Freeze for OntogeneticStateHeader
impl RefUnwindSafe for OntogeneticStateHeader
impl Send for OntogeneticStateHeader
impl Sync for OntogeneticStateHeader
impl Unpin for OntogeneticStateHeader
impl UnsafeUnpin for OntogeneticStateHeader
impl UnwindSafe for OntogeneticStateHeader
Blanket Implementations§
impl<T> AnyBitPattern for Twhere
T: Pod,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.