pub struct SideDistanceRequest { /* private fields */ }Expand description
The object whose rectangle’s sides are measured, the candidates to find beside them, how far out to look and how far to narrow each strip.
Implementations§
Source§impl SideDistanceRequest
impl SideDistanceRequest
Sourcepub fn try_new(
object: ObjectId,
candidates: impl IntoIterator<Item = ObjectId>,
reach: f64,
inset: f64,
) -> Result<Self, PlanSpanError>
pub fn try_new( object: ObjectId, candidates: impl IntoIterator<Item = ObjectId>, reach: f64, inset: f64, ) -> Result<Self, PlanSpanError>
A request for the candidates beside object’s sides within reach
metres of its centre lines, each strip narrowed by inset metres on
both edges. Candidates are sorted and deduplicated; the object
itself is refused as one, and so are a reach that is not positive
and finite and an inset that is negative or not finite.
Sourcepub fn candidates(&self) -> &[ObjectId]
pub fn candidates(&self) -> &[ObjectId]
The candidates, sorted without repeats.
Sourcepub fn reach_metres(&self) -> f64
pub fn reach_metres(&self) -> f64
How far beyond the centre lines to look, in metres.
Sourcepub fn inset_metres(&self) -> f64
pub fn inset_metres(&self) -> f64
How far each strip is narrowed on both edges, in metres.
Trait Implementations§
Source§impl Clone for SideDistanceRequest
impl Clone for SideDistanceRequest
Source§impl Debug for SideDistanceRequest
impl Debug for SideDistanceRequest
Source§impl PartialEq for SideDistanceRequest
impl PartialEq for SideDistanceRequest
impl StructuralPartialEq for SideDistanceRequest
Auto Trait Implementations§
impl Freeze for SideDistanceRequest
impl RefUnwindSafe for SideDistanceRequest
impl Send for SideDistanceRequest
impl Sync for SideDistanceRequest
impl Unpin for SideDistanceRequest
impl UnsafeUnpin for SideDistanceRequest
impl UnwindSafe for SideDistanceRequest
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