Struct bevy::window::prelude::ReceivedCharacter
pub struct ReceivedCharacter {
pub window: Entity,
pub char: SmolStr,
}
๐Deprecated since 0.14.0: Use
KeyboardInput
instead.Expand description
An event that is sent whenever a window receives a character from the OS or underlying system.
Fieldsยง
ยงwindow: Entity
๐Deprecated since 0.14.0: Use
KeyboardInput
instead.Window that received the character.
char: SmolStr
๐Deprecated since 0.14.0: Use
KeyboardInput
instead.Received character.
Trait Implementationsยง
ยงimpl Clone for ReceivedCharacter
impl Clone for ReceivedCharacter
ยงfn clone(&self) -> ReceivedCharacter
fn clone(&self) -> ReceivedCharacter
Returns a copy of the value. Read more
1.0.0 ยท sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreยงimpl Debug for ReceivedCharacter
impl Debug for ReceivedCharacter
ยงimpl<'de> Deserialize<'de> for ReceivedCharacter
impl<'de> Deserialize<'de> for ReceivedCharacter
ยงfn deserialize<__D>(
__deserializer: __D
) -> Result<ReceivedCharacter, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<ReceivedCharacter, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
ยงimpl From<ReceivedCharacter> for WinitEvent
impl From<ReceivedCharacter> for WinitEvent
ยงfn from(e: ReceivedCharacter) -> WinitEvent
fn from(e: ReceivedCharacter) -> WinitEvent
Converts to this type from the input type.
ยงimpl FromReflect for ReceivedCharacterwhere
ReceivedCharacter: Any + Send + Sync,
Entity: FromReflect + TypePath + RegisterForReflection,
SmolStr: FromReflect + TypePath + RegisterForReflection,
impl FromReflect for ReceivedCharacterwhere
ReceivedCharacter: Any + Send + Sync,
Entity: FromReflect + TypePath + RegisterForReflection,
SmolStr: FromReflect + TypePath + RegisterForReflection,
ยงfn from_reflect(reflect: &(dyn Reflect + 'static)) -> Option<ReceivedCharacter>
fn from_reflect(reflect: &(dyn Reflect + 'static)) -> Option<ReceivedCharacter>
Constructs a concrete instance of
Self
from a reflected value.ยงfn take_from_reflect(
reflect: Box<dyn Reflect>
) -> Result<Self, Box<dyn Reflect>>
fn take_from_reflect( reflect: Box<dyn Reflect> ) -> Result<Self, Box<dyn Reflect>>
Attempts to downcast the given value to
Self
using,
constructing the value using from_reflect
if that fails. Read moreยงimpl GetTypeRegistration for ReceivedCharacterwhere
ReceivedCharacter: Any + Send + Sync,
Entity: FromReflect + TypePath + RegisterForReflection,
SmolStr: FromReflect + TypePath + RegisterForReflection,
impl GetTypeRegistration for ReceivedCharacterwhere
ReceivedCharacter: Any + Send + Sync,
Entity: FromReflect + TypePath + RegisterForReflection,
SmolStr: FromReflect + TypePath + RegisterForReflection,
ยงfn get_type_registration() -> TypeRegistration
fn get_type_registration() -> TypeRegistration
Returns the default
TypeRegistration
for this type.ยงfn register_type_dependencies(registry: &mut TypeRegistry)
fn register_type_dependencies(registry: &mut TypeRegistry)
Registers other types needed by this type. Read more
ยงimpl PartialEq for ReceivedCharacter
impl PartialEq for ReceivedCharacter
ยงfn eq(&self, other: &ReceivedCharacter) -> bool
fn eq(&self, other: &ReceivedCharacter) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.ยงimpl Reflect for ReceivedCharacterwhere
ReceivedCharacter: Any + Send + Sync,
Entity: FromReflect + TypePath + RegisterForReflection,
SmolStr: FromReflect + TypePath + RegisterForReflection,
impl Reflect for ReceivedCharacterwhere
ReceivedCharacter: Any + Send + Sync,
Entity: FromReflect + TypePath + RegisterForReflection,
SmolStr: FromReflect + TypePath + RegisterForReflection,
ยงfn get_represented_type_info(&self) -> Option<&'static TypeInfo>
fn get_represented_type_info(&self) -> Option<&'static TypeInfo>
ยงfn into_any(self: Box<ReceivedCharacter>) -> Box<dyn Any>
fn into_any(self: Box<ReceivedCharacter>) -> Box<dyn Any>
Returns the value as a
Box<dyn Any>
.ยงfn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Returns the value as a
&mut dyn Any
.ยงfn into_reflect(self: Box<ReceivedCharacter>) -> Box<dyn Reflect>
fn into_reflect(self: Box<ReceivedCharacter>) -> Box<dyn Reflect>
Casts this type to a boxed reflected value.
ยงfn as_reflect(&self) -> &(dyn Reflect + 'static)
fn as_reflect(&self) -> &(dyn Reflect + 'static)
Casts this type to a reflected value.
ยงfn as_reflect_mut(&mut self) -> &mut (dyn Reflect + 'static)
fn as_reflect_mut(&mut self) -> &mut (dyn Reflect + 'static)
Casts this type to a mutable reflected value.
ยงfn clone_value(&self) -> Box<dyn Reflect>
fn clone_value(&self) -> Box<dyn Reflect>
Clones the value as a
Reflect
trait object. Read moreยงfn set(&mut self, value: Box<dyn Reflect>) -> Result<(), Box<dyn Reflect>>
fn set(&mut self, value: Box<dyn Reflect>) -> Result<(), Box<dyn Reflect>>
Performs a type-checked assignment of a reflected value to this value. Read more
ยงfn reflect_kind(&self) -> ReflectKind
fn reflect_kind(&self) -> ReflectKind
Returns a zero-sized enumeration of โkindsโ of type. Read more
ยงfn reflect_ref(&self) -> ReflectRef<'_>
fn reflect_ref(&self) -> ReflectRef<'_>
Returns an immutable enumeration of โkindsโ of type. Read more
ยงfn reflect_mut(&mut self) -> ReflectMut<'_>
fn reflect_mut(&mut self) -> ReflectMut<'_>
Returns a mutable enumeration of โkindsโ of type. Read more
ยงfn reflect_owned(self: Box<ReceivedCharacter>) -> ReflectOwned
fn reflect_owned(self: Box<ReceivedCharacter>) -> ReflectOwned
Returns an owned enumeration of โkindsโ of type. Read more
ยงfn reflect_partial_eq(&self, value: &(dyn Reflect + 'static)) -> Option<bool>
fn reflect_partial_eq(&self, value: &(dyn Reflect + 'static)) -> Option<bool>
Returns a โpartial equalityโ comparison result. Read more
ยงfn debug(&self, f: &mut Formatter<'_>) -> Result<(), Error>
fn debug(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Debug formatter for the value. Read more
ยงfn apply(&mut self, value: &(dyn Reflect + 'static))
fn apply(&mut self, value: &(dyn Reflect + 'static))
Applies a reflected value to this value. Read more
ยงfn reflect_hash(&self) -> Option<u64>
fn reflect_hash(&self) -> Option<u64>
Returns a hash of the value (which includes the type). Read more
ยงfn serializable(&self) -> Option<Serializable<'_>>
fn serializable(&self) -> Option<Serializable<'_>>
Returns a serializable version of the value. Read more
ยงfn is_dynamic(&self) -> bool
fn is_dynamic(&self) -> bool
Indicates whether or not this type is a dynamic type. Read more
ยงimpl Serialize for ReceivedCharacter
impl Serialize for ReceivedCharacter
ยงfn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
ยงimpl Struct for ReceivedCharacterwhere
ReceivedCharacter: Any + Send + Sync,
Entity: FromReflect + TypePath + RegisterForReflection,
SmolStr: FromReflect + TypePath + RegisterForReflection,
impl Struct for ReceivedCharacterwhere
ReceivedCharacter: Any + Send + Sync,
Entity: FromReflect + TypePath + RegisterForReflection,
SmolStr: FromReflect + TypePath + RegisterForReflection,
ยงfn field(&self, name: &str) -> Option<&(dyn Reflect + 'static)>
fn field(&self, name: &str) -> Option<&(dyn Reflect + 'static)>
Returns a reference to the value of the field named
name
as a &dyn Reflect
.ยงfn field_mut(&mut self, name: &str) -> Option<&mut (dyn Reflect + 'static)>
fn field_mut(&mut self, name: &str) -> Option<&mut (dyn Reflect + 'static)>
Returns a mutable reference to the value of the field named
name
as a
&mut dyn Reflect
.ยงfn field_at(&self, index: usize) -> Option<&(dyn Reflect + 'static)>
fn field_at(&self, index: usize) -> Option<&(dyn Reflect + 'static)>
Returns a reference to the value of the field with index
index
as a
&dyn Reflect
.ยงfn field_at_mut(&mut self, index: usize) -> Option<&mut (dyn Reflect + 'static)>
fn field_at_mut(&mut self, index: usize) -> Option<&mut (dyn Reflect + 'static)>
Returns a mutable reference to the value of the field with index
index
as a &mut dyn Reflect
.ยงfn iter_fields(&self) -> FieldIter<'_> โ
fn iter_fields(&self) -> FieldIter<'_> โ
Returns an iterator over the values of the reflectable fields for this struct.
ยงfn clone_dynamic(&self) -> DynamicStruct
fn clone_dynamic(&self) -> DynamicStruct
Clones the struct into a
DynamicStruct
.ยงimpl TypePath for ReceivedCharacter
impl TypePath for ReceivedCharacter
ยงfn short_type_path() -> &'static str
fn short_type_path() -> &'static str
Returns a short, pretty-print enabled path to the type. Read more
ยงfn type_ident() -> Option<&'static str>
fn type_ident() -> Option<&'static str>
ยงfn crate_name() -> Option<&'static str>
fn crate_name() -> Option<&'static str>
ยงimpl Typed for ReceivedCharacterwhere
ReceivedCharacter: Any + Send + Sync,
Entity: FromReflect + TypePath + RegisterForReflection,
SmolStr: FromReflect + TypePath + RegisterForReflection,
impl Typed for ReceivedCharacterwhere
ReceivedCharacter: Any + Send + Sync,
Entity: FromReflect + TypePath + RegisterForReflection,
SmolStr: FromReflect + TypePath + RegisterForReflection,
impl Eq for ReceivedCharacter
impl Event for ReceivedCharacter
impl StructuralPartialEq for ReceivedCharacter
Auto Trait Implementationsยง
impl Freeze for ReceivedCharacter
impl RefUnwindSafe for ReceivedCharacter
impl Send for ReceivedCharacter
impl Sync for ReceivedCharacter
impl Unpin for ReceivedCharacter
impl UnwindSafe for ReceivedCharacter
Blanket Implementationsยง
ยงimpl<T, U> AsBindGroupShaderType<U> for T
impl<T, U> AsBindGroupShaderType<U> for T
ยงfn as_bind_group_shader_type(&self, _images: &RenderAssets<GpuImage>) -> U
fn as_bind_group_shader_type(&self, _images: &RenderAssets<GpuImage>) -> U
Return the
T
ShaderType
for self
. When used in AsBindGroup
derives, it is safe to assume that all images in self
exist.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> DowncastSync for T
impl<T> DowncastSync for T
ยงimpl<T> DynamicTypePath for Twhere
T: TypePath,
impl<T> DynamicTypePath for Twhere
T: TypePath,
ยงfn reflect_type_path(&self) -> &str
fn reflect_type_path(&self) -> &str
See
TypePath::type_path
.ยงfn reflect_short_type_path(&self) -> &str
fn reflect_short_type_path(&self) -> &str
ยงfn reflect_type_ident(&self) -> Option<&str>
fn reflect_type_ident(&self) -> Option<&str>
See
TypePath::type_ident
.ยงfn reflect_crate_name(&self) -> Option<&str>
fn reflect_crate_name(&self) -> Option<&str>
See
TypePath::crate_name
.ยงfn reflect_module_path(&self) -> Option<&str>
fn reflect_module_path(&self) -> Option<&str>
ยงimpl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
ยงfn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
ยงimpl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
ยงfn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.ยงimpl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
ยงimpl<T> GetPath for T
impl<T> GetPath for T
ยงfn reflect_path<'p>(
&self,
path: impl ReflectPath<'p>
) -> Result<&(dyn Reflect + 'static), ReflectPathError<'p>>
fn reflect_path<'p>( &self, path: impl ReflectPath<'p> ) -> Result<&(dyn Reflect + 'static), ReflectPathError<'p>>
Returns a reference to the value specified by
path
. Read moreยงfn reflect_path_mut<'p>(
&mut self,
path: impl ReflectPath<'p>
) -> Result<&mut (dyn Reflect + 'static), ReflectPathError<'p>>
fn reflect_path_mut<'p>( &mut self, path: impl ReflectPath<'p> ) -> Result<&mut (dyn Reflect + 'static), ReflectPathError<'p>>
Returns a mutable reference to the value specified by
path
. Read moreยงfn path<'p, T>(
&self,
path: impl ReflectPath<'p>
) -> Result<&T, ReflectPathError<'p>>where
T: Reflect,
fn path<'p, T>(
&self,
path: impl ReflectPath<'p>
) -> Result<&T, ReflectPathError<'p>>where
T: Reflect,
Returns a statically typed reference to the value specified by
path
. Read moreยงfn path_mut<'p, T>(
&mut self,
path: impl ReflectPath<'p>
) -> Result<&mut T, ReflectPathError<'p>>where
T: Reflect,
fn path_mut<'p, T>(
&mut self,
path: impl ReflectPath<'p>
) -> Result<&mut T, ReflectPathError<'p>>where
T: Reflect,
Returns a statically typed mutable reference to the value specified by
path
. Read moreยง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> โ
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 more