pub struct CoverageEvidence { /* private fields */ }Expand description
The answer to a CoverageRequest.
Implementations§
Source§impl CoverageEvidence
impl CoverageEvidence
Sourcepub fn try_new(
subject: ObjectId,
footprint: PlanArea,
covered: PlanArea,
effects: Vec<(ObjectId, EffectMeets)>,
) -> Result<Self, PlanAreaError>
pub fn try_new( subject: ObjectId, footprint: PlanArea, covered: PlanArea, effects: Vec<(ObjectId, EffectMeets)>, ) -> Result<Self, PlanAreaError>
The subject’s footprint, the covered part of it and, per source
in request order, whether its effect meets the footprint.
§Errors
PlanAreaError::InvalidMeasurement for a covered area that may
exceed the footprint.
Sourcepub fn effects(&self) -> &[(ObjectId, EffectMeets)]
pub fn effects(&self) -> &[(ObjectId, EffectMeets)]
Per source, whether its effect meets the footprint.
Trait Implementations§
Source§impl Clone for CoverageEvidence
impl Clone for CoverageEvidence
Source§impl Debug for CoverageEvidence
impl Debug for CoverageEvidence
Source§impl PartialEq for CoverageEvidence
impl PartialEq for CoverageEvidence
impl StructuralPartialEq for CoverageEvidence
Auto Trait Implementations§
impl Freeze for CoverageEvidence
impl RefUnwindSafe for CoverageEvidence
impl Send for CoverageEvidence
impl Sync for CoverageEvidence
impl Unpin for CoverageEvidence
impl UnsafeUnpin for CoverageEvidence
impl UnwindSafe for CoverageEvidence
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