pub struct RealFlightReport {
pub generated_by: String,
pub align_height_m: f64,
pub grid_s: f64,
pub flights: Vec<FlightRow>,
pub summary: Summary,
}Expand description
The real-flight report.
Fields§
§generated_by: StringWhat wrote it.
align_height_m: f64The alignment height, m.
grid_s: f64The grid hpr’s heights are kept on, s.
flights: Vec<FlightRow>Each flight.
summary: SummaryThe summary, computed from the rows.
Implementations§
Source§impl RealFlightReport
impl RealFlightReport
Sourcepub fn check_consistent(&self, markdown: &str) -> Result<(), String>
pub fn check_consistent(&self, markdown: &str) -> Result<(), String>
Whether the report holds together without the files it was flown from, as CI checks it: each row’s percentages are its meters’, the summary is the rows’, every outlier has an explanation that holds and no other flight has one, and the page is this report’s rendering.
§Errors
The first thing that doesn’t hold, in words.
Sourcepub fn reproduces(&self, other: &RealFlightReport) -> Result<(), String>
pub fn reproduces(&self, other: &RealFlightReport) -> Result<(), String>
Whether other, a run of today, reproduces this committed report: the same flights, files,
words and counts, and numbers the same but for the platform’s last digits.
§Errors
The first difference, in words.
Sourcepub fn to_markdown(&self) -> String
pub fn to_markdown(&self) -> String
The report as a page.
Trait Implementations§
Source§impl Clone for RealFlightReport
impl Clone for RealFlightReport
Source§fn clone(&self) -> RealFlightReport
fn clone(&self) -> RealFlightReport
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 RealFlightReport
impl Debug for RealFlightReport
Source§impl<'de> Deserialize<'de> for RealFlightReport
impl<'de> Deserialize<'de> for RealFlightReport
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 RealFlightReport
impl PartialEq for RealFlightReport
Source§fn eq(&self, other: &RealFlightReport) -> bool
fn eq(&self, other: &RealFlightReport) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RealFlightReport
impl Serialize for RealFlightReport
impl StructuralPartialEq for RealFlightReport
Auto Trait Implementations§
impl Freeze for RealFlightReport
impl RefUnwindSafe for RealFlightReport
impl Send for RealFlightReport
impl Sync for RealFlightReport
impl Unpin for RealFlightReport
impl UnsafeUnpin for RealFlightReport
impl UnwindSafe for RealFlightReport
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