pub enum MouseWheelDirection {
Up,
Down,
Right,
Left,
}Expand description
A buttonlike-input triggered by MouseWheel events
These will be considered pressed if non-zero net movement in the correct direction is detected.
Variants
Up
Corresponds to +y
Down
Corresponds to -y
Right
Corresponds to +x
Left
Corresponds to -x
Trait Implementations
sourceimpl Clone for MouseWheelDirection
impl Clone for MouseWheelDirection
sourcefn clone(&self) -> MouseWheelDirection
fn clone(&self) -> MouseWheelDirection
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for MouseWheelDirection
impl Debug for MouseWheelDirection
sourceimpl<'de> Deserialize<'de> for MouseWheelDirection
impl<'de> Deserialize<'de> for MouseWheelDirection
sourcefn 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
sourceimpl From<MouseWheelDirection> for InputKind
impl From<MouseWheelDirection> for InputKind
sourcefn from(input: MouseWheelDirection) -> Self
fn from(input: MouseWheelDirection) -> Self
Converts to this type from the input type.
sourceimpl From<MouseWheelDirection> for UserInput
impl From<MouseWheelDirection> for UserInput
sourcefn from(input: MouseWheelDirection) -> Self
fn from(input: MouseWheelDirection) -> Self
Converts to this type from the input type.
sourceimpl Hash for MouseWheelDirection
impl Hash for MouseWheelDirection
sourceimpl PartialEq<MouseWheelDirection> for MouseWheelDirection
impl PartialEq<MouseWheelDirection> for MouseWheelDirection
sourcefn eq(&self, other: &MouseWheelDirection) -> bool
fn eq(&self, other: &MouseWheelDirection) -> bool
sourceimpl Serialize for MouseWheelDirection
impl Serialize for MouseWheelDirection
impl Copy for MouseWheelDirection
impl Eq for MouseWheelDirection
impl StructuralEq for MouseWheelDirection
impl StructuralPartialEq for MouseWheelDirection
Auto Trait Implementations
impl RefUnwindSafe for MouseWheelDirection
impl Send for MouseWheelDirection
impl Sync for MouseWheelDirection
impl Unpin for MouseWheelDirection
impl UnwindSafe for MouseWheelDirection
Blanket Implementations
impl<T, U> AsBindGroupShaderType<U> for Twhere
U: ShaderType,
&'a T: for<'a> Into<U>,
impl<T, U> AsBindGroupShaderType<U> for Twhere
U: ShaderType,
&'a T: for<'a> Into<U>,
fn as_bind_group_shader_type(
&self,
_images: &HashMap<Handle<Image>, <Image as RenderAsset>::PreparedAsset, RandomState, Global>
) -> U
fn as_bind_group_shader_type(
&self,
_images: &HashMap<Handle<Image>, <Image as RenderAsset>::PreparedAsset, RandomState, Global>
) -> U
Return the
T [ShaderType] for self. When used in [AsBindGroup]
derives, it is safe to assume that all images in self exist. Read moresourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn 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, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
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. Read morefn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read morefn 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. Read morefn 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. Read moreimpl<T> DynHash for Twhere
T: DynEq + Hash,
impl<T> DynHash for Twhere
T: DynEq + Hash,
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.