#[non_exhaustive]pub struct CollisionRequest<T> {
pub pointer: Point,
pub active_rect: Option<Rect>,
pub payload: T,
pub candidates: Vec<ZoneCandidate>,
pub max_distance: f64,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.pointer: Point§active_rect: Option<Rect>§payload: T§candidates: Vec<ZoneCandidate>§max_distance: f64Implementations§
Source§impl<T> CollisionRequest<T>
impl<T> CollisionRequest<T>
pub fn new(pointer: Point, payload: T, candidates: Vec<ZoneCandidate>) -> Self
Trait Implementations§
Source§impl<T: Clone> Clone for CollisionRequest<T>
impl<T: Clone> Clone for CollisionRequest<T>
Source§fn clone(&self) -> CollisionRequest<T>
fn clone(&self) -> CollisionRequest<T>
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<T: Debug> Debug for CollisionRequest<T>
impl<T: Debug> Debug for CollisionRequest<T>
Source§impl<T: PartialEq> PartialEq for CollisionRequest<T>
impl<T: PartialEq> PartialEq for CollisionRequest<T>
impl<T: PartialEq> StructuralPartialEq for CollisionRequest<T>
Auto Trait Implementations§
impl<T> Freeze for CollisionRequest<T>where
T: Freeze,
impl<T> RefUnwindSafe for CollisionRequest<T>where
T: RefUnwindSafe,
impl<T> Send for CollisionRequest<T>where
T: Send,
impl<T> Sync for CollisionRequest<T>where
T: Sync,
impl<T> Unpin for CollisionRequest<T>where
T: Unpin,
impl<T> UnsafeUnpin for CollisionRequest<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for CollisionRequest<T>where
T: UnwindSafe,
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> DependencyElement for T
Source§impl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
Source§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
Source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
Source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
Source§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
Source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.