#[non_exhaustive]pub struct GeoApplyReport {
pub matched_buses: usize,
pub matched_branches: usize,
pub unmatched_features: usize,
pub unlocated_buses: usize,
pub unlocated_branches: usize,
pub notes: Vec<String>,
}Expand description
Result of applying a GeoLayer to a network.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.matched_buses: usize§matched_branches: usize§unmatched_features: usize§unlocated_buses: usizeBuses that carry no location when the pass ends, counted over the
whole model. Read with matched_buses, it tells a layer that matched
nothing from a model that needed nothing.
unlocated_branches: usizeBranches that carry no route when the pass ends.
notes: Vec<String>Implementations§
Source§impl GeoApplyReport
impl GeoApplyReport
Sourcepub fn require_located(&self) -> Result<(), Error>
pub fn require_located(&self) -> Result<(), Error>
Refuse a partial placement: every bus needs a location and every branch a route.
§Errors
Error::UnlocatedElements when either count is nonzero.
Trait Implementations§
Source§impl Clone for GeoApplyReport
impl Clone for GeoApplyReport
Source§fn clone(&self) -> GeoApplyReport
fn clone(&self) -> GeoApplyReport
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 GeoApplyReport
impl Debug for GeoApplyReport
Source§impl Default for GeoApplyReport
impl Default for GeoApplyReport
Source§fn default() -> GeoApplyReport
fn default() -> GeoApplyReport
Returns the “default value” for a type. Read more
Source§impl PartialEq for GeoApplyReport
impl PartialEq for GeoApplyReport
Source§fn eq(&self, other: &GeoApplyReport) -> bool
fn eq(&self, other: &GeoApplyReport) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GeoApplyReport
Auto Trait Implementations§
impl Freeze for GeoApplyReport
impl RefUnwindSafe for GeoApplyReport
impl Send for GeoApplyReport
impl Sync for GeoApplyReport
impl Unpin for GeoApplyReport
impl UnsafeUnpin for GeoApplyReport
impl UnwindSafe for GeoApplyReport
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