pub struct RealFlightReport {
pub generated_by: String,
pub align_height_m: f64,
pub grid_s: f64,
pub flights: Vec<FlightRow>,
pub predicted_first: Vec<ComparedPrediction>,
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 compared as soon as it was flown, with its trace and its diagnostics.
predicted_first: Vec<ComparedPrediction>Each flight whose prediction was merged before its log was compared
(crate::predicted_first).
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 among
the flights compared first has an explanation that holds and no other of them has one,
each predicted flight is the one merged or carries its revision
(ComparedPrediction::check), 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, for the
flights compared first and the flights predicted first alike.
§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
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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>,
Source§impl PartialEq for RealFlightReport
impl PartialEq for RealFlightReport
Source§fn eq(&self, other: &RealFlightReport) -> bool
fn eq(&self, other: &RealFlightReport) -> bool
self and other values to be equal, and is used by ==.