pub struct PackagedBodyCoverageSummary {
pub body_count: usize,
pub bodies: Vec<CelestialBody>,
}Expand description
Structured coverage summary for the bodies bundled into the packaged artifact.
Fields§
§body_count: usizeNumber of bodies bundled into the packaged artifact.
bodies: Vec<CelestialBody>Bodies bundled into the packaged artifact.
Implementations§
Source§impl PackagedBodyCoverageSummary
impl PackagedBodyCoverageSummary
Sourcepub fn summary_line(&self) -> String
pub fn summary_line(&self) -> String
Returns the bundled body set as a compact human-readable line.
Sourcepub fn validate(&self) -> Result<(), PackagedBodyCoverageSummaryValidationError>
pub fn validate(&self) -> Result<(), PackagedBodyCoverageSummaryValidationError>
Returns Ok(()) when the summary still matches the bundled body set.
Sourcepub fn validated_summary_line(
&self,
) -> Result<String, PackagedBodyCoverageSummaryValidationError>
pub fn validated_summary_line( &self, ) -> Result<String, PackagedBodyCoverageSummaryValidationError>
Returns the bundled body set as a validated compact human-readable line.
Trait Implementations§
Source§impl Clone for PackagedBodyCoverageSummary
impl Clone for PackagedBodyCoverageSummary
Source§fn clone(&self) -> PackagedBodyCoverageSummary
fn clone(&self) -> PackagedBodyCoverageSummary
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 PackagedBodyCoverageSummary
impl Debug for PackagedBodyCoverageSummary
impl Eq for PackagedBodyCoverageSummary
Source§impl PartialEq for PackagedBodyCoverageSummary
impl PartialEq for PackagedBodyCoverageSummary
Source§fn eq(&self, other: &PackagedBodyCoverageSummary) -> bool
fn eq(&self, other: &PackagedBodyCoverageSummary) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PackagedBodyCoverageSummary
Auto Trait Implementations§
impl Freeze for PackagedBodyCoverageSummary
impl RefUnwindSafe for PackagedBodyCoverageSummary
impl Send for PackagedBodyCoverageSummary
impl Sync for PackagedBodyCoverageSummary
impl Unpin for PackagedBodyCoverageSummary
impl UnsafeUnpin for PackagedBodyCoverageSummary
impl UnwindSafe for PackagedBodyCoverageSummary
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