pub struct TargetResolution {
pub source: TargetResolutionSource,
pub selection: TargetSelection,
pub selected_indices: Vec<usize>,
pub generated: Vec<GeneratedTargetResolution>,
pub weights: Vec<f64>,
pub remainder: f64,
}Expand description
Metadata describing how signal targets were selected and weighted.
Fields§
§source: TargetResolutionSource§selection: TargetSelection§selected_indices: Vec<usize>Resolved 1-based signal indices in output order.
generated: Vec<GeneratedTargetResolution>§weights: Vec<f64>Close weights corresponding one-to-one with resolved targets.
remainder: f64Fraction of the original position not assigned to a target.
Trait Implementations§
Source§impl Clone for TargetResolution
impl Clone for TargetResolution
Source§impl Debug for TargetResolution
impl Debug for TargetResolution
Source§impl<'de> Deserialize<'de> for TargetResolution
impl<'de> Deserialize<'de> for TargetResolution
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 TargetResolution
impl PartialEq for TargetResolution
Source§impl Serialize for TargetResolution
impl Serialize for TargetResolution
impl StructuralPartialEq for TargetResolution
Auto Trait Implementations§
impl Freeze for TargetResolution
impl RefUnwindSafe for TargetResolution
impl Send for TargetResolution
impl Sync for TargetResolution
impl Unpin for TargetResolution
impl UnsafeUnpin for TargetResolution
impl UnwindSafe for TargetResolution
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