#[repr(u8)]
pub enum AcceleratorBehavior {
Alt,
Control,
Shift,
VirtKey,
}
Expand description
Defines the behavior of an accelerator.
Variants
Alt
The ALT key must be held down.
Control
The CTRL key must be held down.
Shift
The SHIFT key must be held down.
VirtKey
The key member specifies a virtual-key code.
If this flag is not specified, key is assumed to specify a character code.
Trait Implementations
sourceimpl BitAnd<AcceleratorBehavior> for AcceleratorBehavior
impl BitAnd<AcceleratorBehavior> for AcceleratorBehavior
type Output = BitFlags<AcceleratorBehavior, <AcceleratorBehavior as RawBitFlags>::Numeric>
type Output = BitFlags<AcceleratorBehavior, <AcceleratorBehavior as RawBitFlags>::Numeric>
The resulting type after applying the
&
operator.sourceimpl BitFlag for AcceleratorBehavior
impl BitFlag for AcceleratorBehavior
sourceimpl BitOr<AcceleratorBehavior> for AcceleratorBehavior
impl BitOr<AcceleratorBehavior> for AcceleratorBehavior
type Output = BitFlags<AcceleratorBehavior, <AcceleratorBehavior as RawBitFlags>::Numeric>
type Output = BitFlags<AcceleratorBehavior, <AcceleratorBehavior as RawBitFlags>::Numeric>
The resulting type after applying the
|
operator.sourceimpl BitXor<AcceleratorBehavior> for AcceleratorBehavior
impl BitXor<AcceleratorBehavior> for AcceleratorBehavior
type Output = BitFlags<AcceleratorBehavior, <AcceleratorBehavior as RawBitFlags>::Numeric>
type Output = BitFlags<AcceleratorBehavior, <AcceleratorBehavior as RawBitFlags>::Numeric>
The resulting type after applying the
^
operator.sourceimpl Clone for AcceleratorBehavior
impl Clone for AcceleratorBehavior
sourcefn clone(&self) -> AcceleratorBehavior
fn clone(&self) -> AcceleratorBehavior
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 AcceleratorBehavior
impl Debug for AcceleratorBehavior
sourceimpl Hash for AcceleratorBehavior
impl Hash for AcceleratorBehavior
sourceimpl Not for AcceleratorBehavior
impl Not for AcceleratorBehavior
type Output = BitFlags<AcceleratorBehavior, <AcceleratorBehavior as RawBitFlags>::Numeric>
type Output = BitFlags<AcceleratorBehavior, <AcceleratorBehavior as RawBitFlags>::Numeric>
The resulting type after applying the
!
operator.sourceimpl PartialEq<AcceleratorBehavior> for AcceleratorBehavior
impl PartialEq<AcceleratorBehavior> for AcceleratorBehavior
sourcefn eq(&self, other: &AcceleratorBehavior) -> bool
fn eq(&self, other: &AcceleratorBehavior) -> bool
sourceimpl RawBitFlags for AcceleratorBehavior
impl RawBitFlags for AcceleratorBehavior
sourceconst EMPTY: Self::Numeric = {transmute(0x00): <flags::AcceleratorBehavior as enumflags2::_internal::RawBitFlags>::Numeric}
const EMPTY: Self::Numeric = {transmute(0x00): <flags::AcceleratorBehavior as enumflags2::_internal::RawBitFlags>::Numeric}
A value with no bits set.
sourceconst DEFAULT: Self::Numeric = {transmute(0x00): <flags::AcceleratorBehavior as enumflags2::_internal::RawBitFlags>::Numeric}
const DEFAULT: Self::Numeric = {transmute(0x00): <flags::AcceleratorBehavior as enumflags2::_internal::RawBitFlags>::Numeric}
The value used by the Default implementation. Equivalent to EMPTY, unless
customized. Read more
sourceconst ALL_BITS: Self::Numeric = {transmute(0x1d): <flags::AcceleratorBehavior as enumflags2::_internal::RawBitFlags>::Numeric}
const ALL_BITS: Self::Numeric = {transmute(0x1d): <flags::AcceleratorBehavior as enumflags2::_internal::RawBitFlags>::Numeric}
A value with all flag bits set.
sourceconst BITFLAGS_TYPE_NAME: &'static str = _
const BITFLAGS_TYPE_NAME: &'static str = _
The name of the type for debug formatting purposes. Read more
impl Copy for AcceleratorBehavior
impl Eq for AcceleratorBehavior
impl StructuralEq for AcceleratorBehavior
impl StructuralPartialEq for AcceleratorBehavior
Auto Trait Implementations
impl RefUnwindSafe for AcceleratorBehavior
impl Send for AcceleratorBehavior
impl Sync for AcceleratorBehavior
impl Unpin for AcceleratorBehavior
impl UnwindSafe for AcceleratorBehavior
Blanket Implementations
sourceimpl<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
sourceimpl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
sourcefn 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 moresourcefn 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 moresourcefn 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 moresourcefn 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 more