Struct Metamer
#[repr(C)]pub struct Metamer {
pub parent_idx: u16,
pub organ: MetamerOrgan,
pub length_m: f32,
pub active_pipes: u32,
pub retired_pipes: u32,
pub organ_mass_kg: f32,
pub pitch_rad: f32,
pub yaw_rad: f32,
pub bending_moment_nm: f32,
pub age_gdd: f32,
}Expand description
The atomic structural and hydraulic unit of a plant graph.
Fields§
§parent_idx: u16§organ: MetamerOrgan§length_m: f32Internode cylinder length in meters
active_pipes: u32Active conducting vascular pipes (Sapwood)
retired_pipes: u32Retired non-conducting structural pipes (Heartwood core)
organ_mass_kg: f32Organ fresh mass in kg (e.g. swelling fruit or leaf biomass)
pitch_rad: f32Spatial orientation pitch angle in radians
yaw_rad: f32Spatial orientation yaw angle in radians
bending_moment_nm: f32Accumulated mechanical torque from gravity and fruit load (N·m)
age_gdd: f32Age in thermal time degree-days
Trait Implementations§
impl Copy for Metamer
impl StructuralPartialEq for Metamer
Auto Trait Implementations§
impl Freeze for Metamer
impl RefUnwindSafe for Metamer
impl Send for Metamer
impl Sync for Metamer
impl Unpin for Metamer
impl UnsafeUnpin for Metamer
impl UnwindSafe for Metamer
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.