pub struct ViewportProximityChange {
pub previous: Option<ViewportProximitySnapshot>,
pub current: ViewportProximitySnapshot,
}Expand description
A settled geometry change during a continuous proximity visit.
First admission/re-entry has no previous sample. Departure sends one final change outside proximity before exit. Unchanged frames emit nothing.
Fields§
§previous: Option<ViewportProximitySnapshot>Last delivered sample in this visit; None on admission/re-entry.
current: ViewportProximitySnapshotCurrent frozen geometry, including the terminal outside sample.
Trait Implementations§
Source§impl Clone for ViewportProximityChange
impl Clone for ViewportProximityChange
Source§fn clone(&self) -> ViewportProximityChange
fn clone(&self) -> ViewportProximityChange
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 moreAuto Trait Implementations§
impl Freeze for ViewportProximityChange
impl RefUnwindSafe for ViewportProximityChange
impl Send for ViewportProximityChange
impl Sync for ViewportProximityChange
impl Unpin for ViewportProximityChange
impl UnsafeUnpin for ViewportProximityChange
impl UnwindSafe for ViewportProximityChange
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.