pub struct SourceContribution {
pub source: usize,
pub intensity_weight: f64,
}Expand description
One source contribution to an acquired intensity frame.
Fields§
§source: usizePhysical source index.
intensity_weight: f64Dimensionless, non-negative intensity weight.
Implementations§
Trait Implementations§
Source§impl Clone for SourceContribution
impl Clone for SourceContribution
Source§fn clone(&self) -> SourceContribution
fn clone(&self) -> SourceContribution
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 moreSource§impl Debug for SourceContribution
impl Debug for SourceContribution
Source§impl<'de> Deserialize<'de> for SourceContribution
impl<'de> Deserialize<'de> for SourceContribution
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
Source§impl PartialEq for SourceContribution
impl PartialEq for SourceContribution
Source§fn eq(&self, other: &SourceContribution) -> bool
fn eq(&self, other: &SourceContribution) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SourceContribution
impl Serialize for SourceContribution
impl Copy for SourceContribution
impl StructuralPartialEq for SourceContribution
Auto Trait Implementations§
impl Freeze for SourceContribution
impl RefUnwindSafe for SourceContribution
impl Send for SourceContribution
impl Sync for SourceContribution
impl Unpin for SourceContribution
impl UnsafeUnpin for SourceContribution
impl UnwindSafe for SourceContribution
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,
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