bevy_window

Struct ReceivedCharacter

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

Sourceยง

impl Clone for ReceivedCharacter

Sourceยง

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

impl Component for ReceivedCharacter
where Self: Send + Sync + 'static,

Sourceยง

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet

A constant indicating the storage type used for this component.
Sourceยง

fn register_component_hooks(_hooks: &mut ComponentHooks)

Called when registering this component, allowing mutable access to its ComponentHooks.
Sourceยง

impl Debug for ReceivedCharacter

Sourceยง

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

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

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

Sourceยง

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Sourceยง

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

Sourceยง

fn from_reflect(reflect: &dyn Reflect) -> Option<Self>

Constructs a concrete instance of Self from a reflected value.
Sourceยง

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

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

Sourceยง

fn get_type_registration() -> TypeRegistration

Returns the default TypeRegistration for this type.
Sourceยง

fn register_type_dependencies(registry: &mut TypeRegistry)

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

impl PartialEq for ReceivedCharacter

Sourceยง

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 ยท Sourceยง

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

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

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

Sourceยง

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

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

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

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

fn as_any(&self) -> &dyn Any

Returns the value as a &dyn Any.
Sourceยง

fn as_any_mut(&mut self) -> &mut dyn Any

Returns the value as a &mut dyn Any.
Sourceยง

fn into_reflect(self: Box<Self>) -> Box<dyn Reflect>

Casts this type to a boxed reflected value.
Sourceยง

fn as_reflect(&self) -> &dyn Reflect

Casts this type to a reflected value.
Sourceยง

fn as_reflect_mut(&mut self) -> &mut dyn Reflect

Casts this type to a mutable reflected value.
Sourceยง

fn clone_value(&self) -> Box<dyn Reflect>

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

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

fn try_apply(&mut self, value: &dyn Reflect) -> Result<(), ApplyError>

Tries to apply a reflected value to this value. Read more
Sourceยง

fn reflect_kind(&self) -> ReflectKind

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

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

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

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

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

fn reflect_owned(self: Box<Self>) -> ReflectOwned

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

fn reflect_partial_eq(&self, value: &dyn Reflect) -> Option<bool>

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

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

Debug formatter for the value. Read more
Sourceยง

fn apply(&mut self, value: &(dyn Reflect + 'static))

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

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

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

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

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

fn is_dynamic(&self) -> bool

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

impl Serialize for ReceivedCharacter

Sourceยง

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Sourceยง

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

Sourceยง

fn field(&self, name: &str) -> Option<&dyn Reflect>

Returns a reference to the value of the field named name as a &dyn Reflect.
Sourceยง

fn field_mut(&mut self, name: &str) -> Option<&mut dyn Reflect>

Returns a mutable reference to the value of the field named name as a &mut dyn Reflect.
Sourceยง

fn field_at(&self, index: usize) -> Option<&dyn Reflect>

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

fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn Reflect>

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

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

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

fn field_len(&self) -> usize

Returns the number of fields in the struct.
Sourceยง

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

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

fn clone_dynamic(&self) -> DynamicStruct

Clones the struct into a DynamicStruct.
Sourceยง

impl TypePath for ReceivedCharacter
where Self: Any + Send + Sync,

Sourceยง

fn type_path() -> &'static str

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

fn short_type_path() -> &'static str

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

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

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

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

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

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

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

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

Sourceยง

fn type_info() -> &'static TypeInfo

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

impl Eq for ReceivedCharacter

Sourceยง

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

Sourceยง

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

impl<C> Bundle for C
where C: Component,

Sourceยง

fn component_ids( components: &mut Components, storages: &mut Storages, ids: &mut impl FnMut(ComponentId), )

Sourceยง

unsafe fn from_components<T, F>(ctx: &mut T, func: &mut F) -> C
where F: for<'a> FnMut(&'a mut T) -> OwningPtr<'a>,

Sourceยง

fn get_component_ids( components: &Components, ids: &mut impl FnMut(Option<ComponentId>), )

Gets this Bundleโ€™s component ids. This will be None if the component has not been registered.
Sourceยง

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

Sourceยง

unsafe fn clone_to_uninit(&self, dst: *mut T)

๐Ÿ”ฌThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Sourceยง

impl<T> Downcast for T
where T: Any,

Sourceยง

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

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

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

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

impl<T> DowncastSync for T
where T: Any + Send + Sync,

Sourceยง

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

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

Sourceยง

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

Casts the type to dyn Any.
Sourceยง

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

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

impl<C> DynamicBundle for C
where C: Component,

Sourceยง

fn get_components(self, func: &mut impl FnMut(StorageType, OwningPtr<'_>))

Sourceยง

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

Sourceยง

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

Sourceยง

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

Checks if this value is equivalent to the given key. Read more
Sourceยง

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

Sourceยง

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

Checks if this value is equivalent to the given key. Read more
Sourceยง

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

Sourceยง

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.

Sourceยง

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

Sourceยง

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

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

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

Sourceยง

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

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

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

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

impl<T> Instrument for T

Sourceยง

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

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

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

Sourceยง

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

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

Sourceยง

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

Sourceยง

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

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

Sourceยง

impl<T> WithSubscriber for T

Sourceยง

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

fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

Sourceยง

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