pub(crate) struct PointerInputState {
subtype: PointerType,
pressed: FxHashSet<u64>,
pub(crate) pointer_id: u32,
x: f64,
y: f64,
}Expand description
https://w3c.github.io/webdriver/#dfn-pointer-input-source TODO: subtype is used for https://w3c.github.io/webdriver/#dfn-get-a-pointer-id Need to add pointer-id to the following struct
Fields§
§subtype: PointerType§pressed: FxHashSet<u64>§pointer_id: u32§x: f64§y: f64Implementations§
Source§impl PointerInputState
impl PointerInputState
Sourcepub(crate) fn new(
subtype: PointerType,
pointer_ids: FxHashSet<u32>,
) -> PointerInputState
pub(crate) fn new( subtype: PointerType, pointer_ids: FxHashSet<u32>, ) -> PointerInputState
Sourcefn get_pointer_id(subtype: PointerType, pointer_ids: FxHashSet<u32>) -> u32
fn get_pointer_id(subtype: PointerType, pointer_ids: FxHashSet<u32>) -> u32
Auto Trait Implementations§
impl Freeze for PointerInputState
impl RefUnwindSafe for PointerInputState
impl Send for PointerInputState
impl Sync for PointerInputState
impl Unpin for PointerInputState
impl UnwindSafe for PointerInputState
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
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> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert