pub struct GuardCandidate { /* private fields */ }Expand description
An element near an exposed edge, with the geometry a policy needs.
Implementations§
Source§impl GuardCandidate
impl GuardCandidate
pub fn try_new( element: ObjectId, horizontal_gap_metres: f64, top_offset_metres: f64, edge_interval: [f64; 2], landing_width_metres: f64, curb_top_offset_metres: Option<f64>, ) -> Result<Self, GuardError>
pub fn element(&self) -> &ObjectId
pub fn horizontal_gap_metres(&self) -> f64
pub fn top_offset_metres(&self) -> f64
pub fn edge_interval(&self) -> [f64; 2]
pub fn landing_width_metres(&self) -> f64
pub fn curb_top_offset_metres(&self) -> Option<f64>
Trait Implementations§
Source§impl Clone for GuardCandidate
impl Clone for GuardCandidate
Source§fn clone(&self) -> GuardCandidate
fn clone(&self) -> GuardCandidate
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 GuardCandidate
impl Debug for GuardCandidate
Source§impl PartialEq for GuardCandidate
impl PartialEq for GuardCandidate
impl StructuralPartialEq for GuardCandidate
Auto Trait Implementations§
impl Freeze for GuardCandidate
impl RefUnwindSafe for GuardCandidate
impl Send for GuardCandidate
impl Sync for GuardCandidate
impl Unpin for GuardCandidate
impl UnsafeUnpin for GuardCandidate
impl UnwindSafe for GuardCandidate
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