#[non_exhaustive]pub struct PlacementBound {
pub point_error: Scalar,
pub axis_error: Scalar,
}Expand description
How far a placement at a station lies from the exact one, see placing at a station.
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.point_error: ScalarHow far the placement’s origin, the station’s point, lies from the exact one.
axis_error: ScalarHow far each of the placement’s axes lies from the exact one.
Implementations§
Source§impl PlacementBound
impl PlacementBound
Sourcepub fn displacement(&self, local: Point3) -> Scalar
pub fn displacement(&self, local: Point3) -> Scalar
How far the image of the source’s local point local may lie from
its exact image: point_error + axis_error (|x| + |y| + |z|).
Trait Implementations§
Source§impl Clone for PlacementBound
impl Clone for PlacementBound
Source§fn clone(&self) -> PlacementBound
fn clone(&self) -> PlacementBound
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 PlacementBound
Source§impl Debug for PlacementBound
impl Debug for PlacementBound
Source§impl PartialEq for PlacementBound
impl PartialEq for PlacementBound
impl StructuralPartialEq for PlacementBound
Auto Trait Implementations§
impl Freeze for PlacementBound
impl RefUnwindSafe for PlacementBound
impl Send for PlacementBound
impl Sync for PlacementBound
impl Unpin for PlacementBound
impl UnsafeUnpin for PlacementBound
impl UnwindSafe for PlacementBound
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