Struct bevy::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

ยง

fn clone(&self) -> ReceivedCharacter

Returns a copy of the value. Read more
1.0.0 ยท sourceยง

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
ยง

impl Debug for ReceivedCharacter

ยง

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
ยง

impl<'de> Deserialize<'de> for ReceivedCharacter

ยง

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

ยง

fn from(e: ReceivedCharacter) -> WinitEvent

Converts to this type from the input type.
ยง

impl FromReflect for ReceivedCharacter
where ReceivedCharacter: Any + Send + Sync, Entity: FromReflect + TypePath + RegisterForReflection, SmolStr: FromReflect + TypePath + RegisterForReflection,

ยง

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>>

Attempts to downcast the given value to Self using, constructing the value using from_reflect if that fails. Read more
ยง

impl GetTypeRegistration for ReceivedCharacter
where ReceivedCharacter: Any + Send + Sync, Entity: FromReflect + TypePath + RegisterForReflection, SmolStr: FromReflect + TypePath + RegisterForReflection,

ยง

fn get_type_registration() -> TypeRegistration

Returns the default TypeRegistration for this type.
ยง

fn register_type_dependencies(registry: &mut TypeRegistry)

Registers other types needed by this type. Read more
ยง

impl PartialEq for ReceivedCharacter

ยง

fn eq(&self, other: &ReceivedCharacter) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 ยท sourceยง

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
ยง

impl Reflect for ReceivedCharacter
where ReceivedCharacter: Any + Send + Sync, Entity: FromReflect + TypePath + RegisterForReflection, SmolStr: FromReflect + TypePath + RegisterForReflection,

ยง

fn get_represented_type_info(&self) -> Option<&'static TypeInfo>

Returns the TypeInfo of the type represented by this value. Read more
ยง

fn into_any(self: Box<ReceivedCharacter>) -> Box<dyn Any>

Returns the value as a Box<dyn Any>.
ยง

fn as_any(&self) -> &(dyn Any + 'static)

Returns the value as a &dyn Any.
ยง

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>

Casts this type to a boxed reflected value.
ยง

fn as_reflect(&self) -> &(dyn Reflect + 'static)

Casts this type to a reflected value.
ยง

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>

Clones the value as a Reflect trait object. Read more
ยง

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 apply(&mut self, value: &(dyn Reflect + 'static))

Applies a reflected value to this value. Read more
ยง

fn reflect_kind(&self) -> ReflectKind

Returns a zero-sized enumeration of โ€œkindsโ€ of type. Read more
ยง

fn reflect_ref(&self) -> ReflectRef<'_>

Returns an immutable enumeration of โ€œkindsโ€ of type. Read more
ยง

fn reflect_mut(&mut self) -> ReflectMut<'_>

Returns a mutable enumeration of โ€œkindsโ€ of type. Read more
ยง

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>

Returns a โ€œpartial equalityโ€ comparison result. Read more
ยง

fn debug(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Debug formatter for the value. Read more
ยง

fn reflect_hash(&self) -> Option<u64>

Returns a hash of the value (which includes the type). Read more
ยง

fn serializable(&self) -> Option<Serializable<'_>>

Returns a serializable version of the value. Read more
ยง

fn is_dynamic(&self) -> bool

Indicates whether or not this type is a dynamic type. Read more
ยง

impl Serialize for ReceivedCharacter

ยง

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 ReceivedCharacter
where ReceivedCharacter: Any + Send + Sync, Entity: FromReflect + TypePath + RegisterForReflection, SmolStr: FromReflect + TypePath + RegisterForReflection,

ยง

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)>

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)>

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)>

Returns a mutable reference to the value of the field with index index as a &mut dyn Reflect.
ยง

fn name_at(&self, index: usize) -> Option<&str>

Returns the name of the field with index index.
ยง

fn field_len(&self) -> usize

Returns the number of fields in the struct.
ยง

fn iter_fields(&self) -> FieldIter<'_> โ“˜

Returns an iterator over the values of the reflectable fields for this struct.
ยง

fn clone_dynamic(&self) -> DynamicStruct

Clones the struct into a DynamicStruct.
ยง

impl TypePath for ReceivedCharacter

ยง

fn type_path() -> &'static str

Returns the fully qualified path of the underlying type. Read more
ยง

fn short_type_path() -> &'static str

Returns a short, pretty-print enabled path to the type. Read more
ยง

fn type_ident() -> Option<&'static str>

Returns the name of the type, or None if it is anonymous. Read more
ยง

fn crate_name() -> Option<&'static str>

Returns the name of the crate the type is in, or None if it is anonymous. Read more
ยง

fn module_path() -> Option<&'static str>

Returns the path to the module the type is in, or None if it is anonymous. Read more
ยง

impl Typed for ReceivedCharacter
where ReceivedCharacter: Any + Send + Sync, Entity: FromReflect + TypePath + RegisterForReflection, SmolStr: FromReflect + TypePath + RegisterForReflection,

ยง

fn type_info() -> &'static TypeInfo

Returns the compile-time info for the underlying type.
ยง

impl Eq for ReceivedCharacter

ยง

impl Event for ReceivedCharacter
where ReceivedCharacter: Send + Sync + 'static,

ยง

impl StructuralPartialEq for ReceivedCharacter

Auto Trait Implementationsยง

Blanket Implementationsยง

sourceยง

impl<T> Any for T
where T: 'static + ?Sized,

sourceยง

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
ยง

impl<T, U> AsBindGroupShaderType<U> for T
where U: ShaderType, &'a T: for<'a> Into<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> Borrow<T> for T
where T: ?Sized,

sourceยง

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
sourceยง

impl<T> BorrowMut<T> for T
where T: ?Sized,

sourceยง

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
ยง

impl<T> Downcast<T> for T

ยง

fn downcast(&self) -> &T

ยง

impl<T> Downcast for T
where T: 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>

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)

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)

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
where T: Any + Send + Sync,

ยง

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Sync + Send>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
ยง

impl<T> DynEq for T
where T: Any + Eq,

ยง

fn as_any(&self) -> &(dyn Any + 'static)

Casts the type to dyn Any.
ยง

fn dyn_eq(&self, other: &(dyn DynEq + 'static)) -> bool

This method tests for self and other values to be equal. Read more
ยง

impl<T> DynamicTypePath for T
where T: TypePath,

ยง

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

ยง

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
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

ยง

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
sourceยง

impl<T> From<T> for T

sourceยง

fn from(t: T) -> T

Returns the argument unchanged.

ยง

impl<S> FromSample<S> for S

ยง

fn from_sample_(s: S) -> S

ยง

impl<S> GetField for S
where S: Struct,

ยง

fn get_field<T>(&self, name: &str) -> Option<&T>
where T: Reflect,

Returns a reference to the value of the field named name, downcast to T.
ยง

fn get_field_mut<T>(&mut self, name: &str) -> Option<&mut T>
where T: Reflect,

Returns a mutable reference to the value of the field named name, downcast to T.
ยง

impl<T> GetPath for T
where T: Reflect + ?Sized,

ยง

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>>

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,

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,

Returns a statically typed mutable reference to the value specified by path. Read more
ยง

impl<T> Instrument for T

ยง

fn instrument(self, span: Span) -> Instrumented<Self> โ“˜

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
ยง

fn in_current_span(self) -> Instrumented<Self> โ“˜

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
sourceยง

impl<T, U> Into<U> for T
where U: From<T>,

sourceยง

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

sourceยง

impl<T> IntoEither for T

sourceยง

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 more
sourceยง

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> โ“˜
where F: FnOnce(&Self) -> bool,

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
ยง

impl<F, T> IntoSample<T> for F
where T: FromSample<F>,

ยง

fn into_sample(self) -> T

ยง

impl<T> Pointable for T

ยง

const ALIGN: usize = _

The alignment of pointer.
ยง

type Init = T

The type for initializers.
ยง

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
ยง

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
ยง

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
ยง

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
sourceยง

impl<T> Same for T

ยง

type Output = T

Should always be Self
sourceยง

impl<T> Serialize for T
where T: Serialize + ?Sized,

sourceยง

fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>

sourceยง

fn do_erased_serialize( &self, serializer: &mut dyn Serializer ) -> Result<(), ErrorImpl>

sourceยง

impl<T> ToOwned for T
where T: Clone,

ยง

type Owned = T

The resulting type after obtaining ownership.
sourceยง

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
sourceยง

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
ยง

impl<T, U> ToSample<U> for T
where U: FromSample<T>,

ยง

fn to_sample_(self) -> U

sourceยง

impl<T, U> TryFrom<U> for T
where U: Into<T>,

ยง

type Error = Infallible

The type returned in the event of a conversion error.
sourceยง

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
sourceยง

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

ยง

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
sourceยง

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
ยง

impl<T> TypeData for T
where T: 'static + Send + Sync + Clone,

ยง

impl<T> Upcast<T> for T

ยง

fn upcast(&self) -> Option<&T>

ยง

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

ยง

fn vzip(self) -> V

ยง

impl<T> WithSubscriber for T

ยง

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> โ“˜
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
ยง

fn with_current_subscriber(self) -> WithDispatch<Self> โ“˜

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
ยง

impl<T> ConditionalSend for T
where T: Send,

sourceยง

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

ยง

impl<S, T> Duplex<S> for T
where T: FromSample<S> + ToSample<S>,

ยง

impl<T> Settings for T
where T: 'static + Send + Sync,

ยง

impl<T> WasmNotSend for T
where T: Send,

ยง

impl<T> WasmNotSendSync for T
where T: WasmNotSend + WasmNotSync,

ยง

impl<T> WasmNotSync for T
where T: Sync,