pub struct TheAcceleratorKey { /* private fields */ }Implementations§
Source§impl TheAcceleratorKey
impl TheAcceleratorKey
Sourcepub const SHIFT: TheAcceleratorKey
pub const SHIFT: TheAcceleratorKey
Shift Key
Sourcepub const CTRL: TheAcceleratorKey
pub const CTRL: TheAcceleratorKey
Ctrl Key / Control on Mac
Sourcepub const ALT: TheAcceleratorKey
pub const ALT: TheAcceleratorKey
Alt Key / Option on Mac
Sourcepub const CMD: TheAcceleratorKey
pub const CMD: TheAcceleratorKey
Cmd on Mac
Sourcepub const CTRLCMD: TheAcceleratorKey
pub const CTRLCMD: TheAcceleratorKey
CtrlAndCmd
Sourcepub const ALL: TheAcceleratorKey
pub const ALL: TheAcceleratorKey
The combination of A, B, and C.
Sourcepub const fn empty() -> TheAcceleratorKey
pub const fn empty() -> TheAcceleratorKey
Returns an empty set of flags.
Sourcepub const fn all() -> TheAcceleratorKey
pub const fn all() -> TheAcceleratorKey
Returns the set containing all flags.
Sourcepub fn from_bits(bits: u32) -> Option<TheAcceleratorKey>
pub fn from_bits(bits: u32) -> Option<TheAcceleratorKey>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Sourcepub const fn from_bits_truncate(bits: u32) -> TheAcceleratorKey
pub const fn from_bits_truncate(bits: u32) -> TheAcceleratorKey
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub const fn intersects(&self, other: TheAcceleratorKey) -> bool
pub const fn intersects(&self, other: TheAcceleratorKey) -> bool
Returns true if there are flags common to both self and other.
Sourcepub const fn contains(&self, other: TheAcceleratorKey) -> bool
pub const fn contains(&self, other: TheAcceleratorKey) -> bool
Returns true all of the flags in other are contained within self.
Sourcepub fn insert(&mut self, other: TheAcceleratorKey)
pub fn insert(&mut self, other: TheAcceleratorKey)
Inserts the specified flags in-place.
Sourcepub fn remove(&mut self, other: TheAcceleratorKey)
pub fn remove(&mut self, other: TheAcceleratorKey)
Removes the specified flags in-place.
Sourcepub fn toggle(&mut self, other: TheAcceleratorKey)
pub fn toggle(&mut self, other: TheAcceleratorKey)
Toggles the specified flags in-place.
Sourcepub fn set(&mut self, other: TheAcceleratorKey, value: bool)
pub fn set(&mut self, other: TheAcceleratorKey, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations§
Source§impl Binary for TheAcceleratorKey
impl Binary for TheAcceleratorKey
Source§impl BitAnd for TheAcceleratorKey
impl BitAnd for TheAcceleratorKey
Source§fn bitand(self, other: TheAcceleratorKey) -> TheAcceleratorKey
fn bitand(self, other: TheAcceleratorKey) -> TheAcceleratorKey
Returns the intersection between the two sets of flags.
Source§type Output = TheAcceleratorKey
type Output = TheAcceleratorKey
& operator.Source§impl BitAndAssign for TheAcceleratorKey
impl BitAndAssign for TheAcceleratorKey
Source§fn bitand_assign(&mut self, other: TheAcceleratorKey)
fn bitand_assign(&mut self, other: TheAcceleratorKey)
Disables all flags disabled in the set.
Source§impl BitOr for TheAcceleratorKey
impl BitOr for TheAcceleratorKey
Source§fn bitor(self, other: TheAcceleratorKey) -> TheAcceleratorKey
fn bitor(self, other: TheAcceleratorKey) -> TheAcceleratorKey
Returns the union of the two sets of flags.
Source§type Output = TheAcceleratorKey
type Output = TheAcceleratorKey
| operator.Source§impl BitOrAssign for TheAcceleratorKey
impl BitOrAssign for TheAcceleratorKey
Source§fn bitor_assign(&mut self, other: TheAcceleratorKey)
fn bitor_assign(&mut self, other: TheAcceleratorKey)
Adds the set of flags.
Source§impl BitXor for TheAcceleratorKey
impl BitXor for TheAcceleratorKey
Source§fn bitxor(self, other: TheAcceleratorKey) -> TheAcceleratorKey
fn bitxor(self, other: TheAcceleratorKey) -> TheAcceleratorKey
Returns the left flags, but with all the right flags toggled.
Source§type Output = TheAcceleratorKey
type Output = TheAcceleratorKey
^ operator.Source§impl BitXorAssign for TheAcceleratorKey
impl BitXorAssign for TheAcceleratorKey
Source§fn bitxor_assign(&mut self, other: TheAcceleratorKey)
fn bitxor_assign(&mut self, other: TheAcceleratorKey)
Toggles the set of flags.
Source§impl Clone for TheAcceleratorKey
impl Clone for TheAcceleratorKey
Source§fn clone(&self) -> TheAcceleratorKey
fn clone(&self) -> TheAcceleratorKey
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TheAcceleratorKey
impl Debug for TheAcceleratorKey
Source§impl Extend<TheAcceleratorKey> for TheAcceleratorKey
impl Extend<TheAcceleratorKey> for TheAcceleratorKey
Source§fn extend<T>(&mut self, iterator: T)where
T: IntoIterator<Item = TheAcceleratorKey>,
fn extend<T>(&mut self, iterator: T)where
T: IntoIterator<Item = TheAcceleratorKey>,
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one)Source§impl FromIterator<TheAcceleratorKey> for TheAcceleratorKey
impl FromIterator<TheAcceleratorKey> for TheAcceleratorKey
Source§fn from_iter<T>(iterator: T) -> TheAcceleratorKeywhere
T: IntoIterator<Item = TheAcceleratorKey>,
fn from_iter<T>(iterator: T) -> TheAcceleratorKeywhere
T: IntoIterator<Item = TheAcceleratorKey>,
Source§impl Hash for TheAcceleratorKey
impl Hash for TheAcceleratorKey
Source§impl LowerHex for TheAcceleratorKey
impl LowerHex for TheAcceleratorKey
Source§impl Not for TheAcceleratorKey
impl Not for TheAcceleratorKey
Source§fn not(self) -> TheAcceleratorKey
fn not(self) -> TheAcceleratorKey
Returns the complement of this set of flags.
Source§type Output = TheAcceleratorKey
type Output = TheAcceleratorKey
! operator.Source§impl Octal for TheAcceleratorKey
impl Octal for TheAcceleratorKey
Source§impl PartialEq for TheAcceleratorKey
impl PartialEq for TheAcceleratorKey
Source§impl PartialOrd for TheAcceleratorKey
impl PartialOrd for TheAcceleratorKey
Source§impl Sub for TheAcceleratorKey
impl Sub for TheAcceleratorKey
Source§fn sub(self, other: TheAcceleratorKey) -> TheAcceleratorKey
fn sub(self, other: TheAcceleratorKey) -> TheAcceleratorKey
Returns the set difference of the two sets of flags.
Source§type Output = TheAcceleratorKey
type Output = TheAcceleratorKey
- operator.Source§impl SubAssign for TheAcceleratorKey
impl SubAssign for TheAcceleratorKey
Source§fn sub_assign(&mut self, other: TheAcceleratorKey)
fn sub_assign(&mut self, other: TheAcceleratorKey)
Disables all flags enabled in the set.
Source§impl UpperHex for TheAcceleratorKey
impl UpperHex for TheAcceleratorKey
impl Copy for TheAcceleratorKey
impl Eq for TheAcceleratorKey
impl StructuralPartialEq for TheAcceleratorKey
Auto Trait Implementations§
impl Freeze for TheAcceleratorKey
impl RefUnwindSafe for TheAcceleratorKey
impl Send for TheAcceleratorKey
impl Sync for TheAcceleratorKey
impl Unpin for TheAcceleratorKey
impl UnsafeUnpin for TheAcceleratorKey
impl UnwindSafe for TheAcceleratorKey
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
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>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
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)
fn as_any(&self) -> &(dyn Any + 'static)
&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)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&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
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.