Enum fyrox_ui::key::KeyBinding
source · pub enum KeyBinding {
NotSet,
Some(KeyCode),
}Variants§
Implementations§
source§impl KeyBinding
impl KeyBinding
pub fn from_key_code(key: KeyCode) -> Self
Trait Implementations§
source§impl Clone for KeyBinding
impl Clone for KeyBinding
source§fn clone(&self) -> KeyBinding
fn clone(&self) -> KeyBinding
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 moresource§impl Debug for KeyBinding
impl Debug for KeyBinding
source§impl Default for KeyBinding
impl Default for KeyBinding
source§impl<'de> Deserialize<'de> for KeyBinding
impl<'de> Deserialize<'de> for KeyBinding
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 Display for KeyBinding
impl Display for KeyBinding
source§impl PartialEq<KeyBinding> for KeyBinding
impl PartialEq<KeyBinding> for KeyBinding
source§fn eq(&self, other: &KeyBinding) -> bool
fn eq(&self, other: &KeyBinding) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialEq<KeyCode> for KeyBinding
impl PartialEq<KeyCode> for KeyBinding
source§impl Reflect for KeyBindingwhere
Self: 'static,
KeyCode: Reflect,
impl Reflect for KeyBindingwhere
Self: 'static,
KeyCode: Reflect,
fn type_name(&self) -> &'static str
fn fields_info(&self) -> Vec<FieldInfo<'_>>
fn into_any(self: Box<Self>) -> Box<dyn Any>
fn set(
&mut self,
value: Box<dyn Reflect>
) -> Result<Box<dyn Reflect>, Box<dyn Reflect>>
fn as_any(&self) -> &dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
fn as_reflect(&self) -> &dyn Reflect
fn as_reflect_mut(&mut self) -> &mut dyn Reflect
fn fields(&self) -> Vec<&dyn Reflect>
fn fields_mut(&mut self) -> Vec<&mut dyn Reflect>
fn field(&self, name: &str) -> Option<&dyn Reflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn Reflect>
source§fn set_field(
&mut self,
field: &str,
value: Box<dyn Reflect + 'static, Global>
) -> Result<Box<dyn Reflect + 'static, Global>, Box<dyn Reflect + 'static, Global>>
fn set_field(
&mut self,
field: &str,
value: Box<dyn Reflect + 'static, Global>
) -> Result<Box<dyn Reflect + 'static, Global>, Box<dyn Reflect + 'static, Global>>
Calls user method specified with
#[reflect(setter = ..)] or falls back to
Reflect::field_mutfn as_array(&self) -> Option<&(dyn ReflectArray + 'static)>
fn as_array_mut(&mut self) -> Option<&mut (dyn ReflectArray + 'static)>
fn as_list(&self) -> Option<&(dyn ReflectList + 'static)>
fn as_list_mut(&mut self) -> Option<&mut (dyn ReflectList + 'static)>
fn as_inheritable_variable(
&self
) -> Option<&(dyn ReflectInheritableVariable + 'static)>
fn as_inheritable_variable_mut(
&mut self
) -> Option<&mut (dyn ReflectInheritableVariable + 'static)>
source§impl Serialize for KeyBinding
impl Serialize for KeyBinding
impl StructuralPartialEq for KeyBinding
Auto Trait Implementations§
impl RefUnwindSafe for KeyBinding
impl Send for KeyBinding
impl Sync for KeyBinding
impl Unpin for KeyBinding
impl UnwindSafe for KeyBinding
Blanket Implementations§
source§impl<T> FieldValue for Twhere
T: 'static,
impl<T> FieldValue for Twhere
T: 'static,
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> ResolvePath for Twhere
T: Reflect,
impl<T> ResolvePath for Twhere
T: Reflect,
fn resolve_path<'r, 'p>(
&'r self,
path: &'p str
) -> Result<&'r (dyn Reflect + 'static), ReflectPathError<'p>>
fn resolve_path_mut<'r, 'p>(
&'r mut self,
path: &'p str
) -> Result<&'r mut (dyn Reflect + 'static), ReflectPathError<'p>>
fn get_resolve_path<T, 'r, 'p>(
&'r self,
path: &'p str
) -> Result<&'r T, ReflectPathError<'p>>where
T: Reflect,
fn get_resolve_path_mut<T, 'r, 'p>(
&'r mut self,
path: &'p str
) -> Result<&'r mut T, ReflectPathError<'p>>where
T: Reflect,
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.