#[non_exhaustive]pub enum PlacementAccuracy {
Exact,
Certified(PlacementBound),
Unbounded(&'static str),
}Expand description
How far a node placed at a station lies from its exact placement.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Exact
The frame is exact, rounding aside (ResolvedPlacement::exact): a
line basis, itself placed, if at all, in exact frames.
Certified(PlacementBound)
The placement lies within the bound of the exact one.
Unbounded(&'static str)
No bound is certified, for the reason named.
Trait Implementations§
Source§impl Clone for PlacementAccuracy
impl Clone for PlacementAccuracy
Source§fn clone(&self) -> PlacementAccuracy
fn clone(&self) -> PlacementAccuracy
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 moreimpl Copy for PlacementAccuracy
Source§impl Debug for PlacementAccuracy
impl Debug for PlacementAccuracy
Source§impl PartialEq for PlacementAccuracy
impl PartialEq for PlacementAccuracy
impl StructuralPartialEq for PlacementAccuracy
Auto Trait Implementations§
impl Freeze for PlacementAccuracy
impl RefUnwindSafe for PlacementAccuracy
impl Send for PlacementAccuracy
impl Sync for PlacementAccuracy
impl Unpin for PlacementAccuracy
impl UnsafeUnpin for PlacementAccuracy
impl UnwindSafe for PlacementAccuracy
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