[][src]Struct genie_hki::GroupIndexError

pub struct GroupIndexError { /* fields omitted */ }

Represents an error when accessing a hotkey group that does not exist.

The first index represents the index of the group, and the second index represents the number of groups. The first index must be greater than or equal to the second index.

Implementations

impl GroupIndexError[src]

pub fn new(index: usize, num_groups: usize) -> Self[src]

Returns a GroupIndexError with group index index and a number of groups equal to num_groups. Panics if index < num_groups.

pub fn index(&self) -> usize[src]

Returns the index of the group that was accessed.

pub fn num_groups(&self) -> usize[src]

Returns the number of valid groups.

Trait Implementations

impl Debug for GroupIndexError[src]

impl Display for GroupIndexError[src]

impl Error for GroupIndexError[src]

impl From<GroupIndexError> for IndexError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.