#[repr(transparent)]pub struct GroupIndex(pub u32);
Expand description
A 0-based index into the groups of a keyboard.
Since different keys can have different numbers of groups, there is no such thing as
an invalid group index. Instead, when using the group index, it is brought into range
according to the Redirect
setting of the key.
Tuple Fields§
§0: u32
Implementations§
Source§impl GroupIndex
impl GroupIndex
pub const ZERO: GroupIndex
Trait Implementations§
Source§impl Add<GroupDelta> for GroupIndex
impl Add<GroupDelta> for GroupIndex
Source§type Output = GroupIndex
type Output = GroupIndex
The resulting type after applying the
+
operator.Source§impl Clone for GroupIndex
impl Clone for GroupIndex
Source§fn clone(&self) -> GroupIndex
fn clone(&self) -> GroupIndex
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 GroupIndex
impl Debug for GroupIndex
Source§impl Default for GroupIndex
impl Default for GroupIndex
Source§fn default() -> GroupIndex
fn default() -> GroupIndex
Returns the “default value” for a type. Read more
Source§impl Hash for GroupIndex
impl Hash for GroupIndex
Source§impl Ord for GroupIndex
impl Ord for GroupIndex
Source§fn cmp(&self, other: &GroupIndex) -> Ordering
fn cmp(&self, other: &GroupIndex) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for GroupIndex
impl PartialEq for GroupIndex
Source§impl PartialOrd for GroupIndex
impl PartialOrd for GroupIndex
impl Copy for GroupIndex
impl Eq for GroupIndex
impl StructuralPartialEq for GroupIndex
Auto Trait Implementations§
impl Freeze for GroupIndex
impl RefUnwindSafe for GroupIndex
impl Send for GroupIndex
impl Sync for GroupIndex
impl Unpin for GroupIndex
impl UnwindSafe for GroupIndex
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
Compare self to
key
and return true
if they are equal.