pub struct Landing { /* private fields */ }Expand description
The object carrying a landing and, when it is a rectangle along the leaving direction, its extent.
Implementations§
Source§impl Landing
impl Landing
Sourcepub fn new(carrier: ObjectId, extent: Option<LandingExtent>) -> Self
pub fn new(carrier: ObjectId, extent: Option<LandingExtent>) -> Self
A landing on carrier, measured when extent is given.
Sourcepub fn carrier(&self) -> &ObjectId
pub fn carrier(&self) -> &ObjectId
The object whose level surface meets the end: a requested candidate, or the subject itself for a ramp’s own landing.
Sourcepub fn extent(&self) -> Option<LandingExtent>
pub fn extent(&self) -> Option<LandingExtent>
The landing’s rectangle, None when its surface is no rectangle
along the leaving direction and so was not measured.
Trait Implementations§
impl StructuralPartialEq for Landing
Auto Trait Implementations§
impl Freeze for Landing
impl RefUnwindSafe for Landing
impl Send for Landing
impl Sync for Landing
impl Unpin for Landing
impl UnsafeUnpin for Landing
impl UnwindSafe for Landing
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