pub struct ProximityRequest { /* private fields */ }Expand description
A request to measure the proximity of two distinct objects.
Implementations§
Source§impl ProximityRequest
impl ProximityRequest
Sourcepub fn try_new(
subject: ObjectId,
counterpart: ObjectId,
) -> Result<Self, ProximityError>
pub fn try_new( subject: ObjectId, counterpart: ObjectId, ) -> Result<Self, ProximityError>
A request in space (ProximityProjection::Minimum3d).
Sourcepub fn projected(
subject: ObjectId,
counterpart: ObjectId,
projection: ProximityProjection,
) -> Result<Self, ProximityError>
pub fn projected( subject: ObjectId, counterpart: ObjectId, projection: ProximityProjection, ) -> Result<Self, ProximityError>
A request measured in projection; a vertical offset must be finite
and non-negative.
pub fn subject(&self) -> &ObjectId
pub fn counterpart(&self) -> &ObjectId
pub fn projection(&self) -> ProximityProjection
Trait Implementations§
Source§impl Clone for ProximityRequest
impl Clone for ProximityRequest
Source§impl Debug for ProximityRequest
impl Debug for ProximityRequest
impl Eq for ProximityRequest
Source§impl Ord for ProximityRequest
impl Ord for ProximityRequest
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ProximityRequest
impl PartialEq for ProximityRequest
Source§impl PartialOrd for ProximityRequest
impl PartialOrd for ProximityRequest
impl StructuralPartialEq for ProximityRequest
Auto Trait Implementations§
impl Freeze for ProximityRequest
impl RefUnwindSafe for ProximityRequest
impl Send for ProximityRequest
impl Sync for ProximityRequest
impl Unpin for ProximityRequest
impl UnsafeUnpin for ProximityRequest
impl UnwindSafe for ProximityRequest
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