#[repr(C)]pub struct RawFlux {
pub id_source: u32,
pub id_target: u32,
pub flux_source_target: f64,
pub flux_target_source: f64,
}Expand description
Represents a single raw flux interaction.
This struct is used to store individual flux interactions between a source and a target, including the flux values in both directions.
Fields§
§id_source: u32The identifier for the source in the flux interaction.
id_target: u32The identifier for the target in the flux interaction.
flux_source_target: f64The flux value from the source to the target.
flux_target_source: f64The flux value from the target to the source.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RawFlux
impl<'de> Deserialize<'de> for RawFlux
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for RawFlux
Auto Trait Implementations§
impl Freeze for RawFlux
impl RefUnwindSafe for RawFlux
impl Send for RawFlux
impl Sync for RawFlux
impl Unpin for RawFlux
impl UnsafeUnpin for RawFlux
impl UnwindSafe for RawFlux
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.