Struct freya::prelude::dioxus_elements::events::PlatformEventData
pub struct PlatformEventData { /* private fields */ }
Expand description
A platform specific event.
Implementations§
§impl PlatformEventData
impl PlatformEventData
pub fn new(event: Box<dyn Any>) -> PlatformEventData
pub fn downcast<T>(&self) -> Option<&T>where T: 'static,
pub fn downcast_mut<T>(&mut self) -> Option<&mut T>where T: 'static,
pub fn into_inner<T>(self) -> Option<T>where T: 'static,
Trait Implementations§
§impl From<&PlatformEventData> for KeyboardData
impl From<&PlatformEventData> for KeyboardData
§fn from(val: &PlatformEventData) -> KeyboardData
fn from(val: &PlatformEventData) -> KeyboardData
Converts to this type from the input type.
§impl From<&PlatformEventData> for MouseData
impl From<&PlatformEventData> for MouseData
§fn from(val: &PlatformEventData) -> MouseData
fn from(val: &PlatformEventData) -> MouseData
Converts to this type from the input type.
§impl From<&PlatformEventData> for PointerData
impl From<&PlatformEventData> for PointerData
§fn from(val: &PlatformEventData) -> PointerData
fn from(val: &PlatformEventData) -> PointerData
Converts to this type from the input type.
§impl From<&PlatformEventData> for TouchData
impl From<&PlatformEventData> for TouchData
§fn from(val: &PlatformEventData) -> TouchData
fn from(val: &PlatformEventData) -> TouchData
Converts to this type from the input type.
§impl From<&PlatformEventData> for WheelData
impl From<&PlatformEventData> for WheelData
§fn from(val: &PlatformEventData) -> WheelData
fn from(val: &PlatformEventData) -> WheelData
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for PlatformEventData
impl !Send for PlatformEventData
impl !Sync for PlatformEventData
impl Unpin for PlatformEventData
impl !UnwindSafe for PlatformEventData
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<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere O: From<T>,
§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
§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>,
§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.