Struct rebind::ButtonTuple [] [src]

pub struct ButtonTuple(pub Option<Button>, pub Option<Button>, pub Option<Button>);

A three-element tuple of Option<Button>. For simplicity, a maximum number of 3 buttons can be bound to each action, and this is exposed through the InputRebind struct.

Methods

impl ButtonTuple
[src]

Creates a new tuple with no buttons in it (equivalent to Default::default()).

Check if the button is in the tuple.

Insert a button into the tuple if there is room, searching from left to right. If the button is inserted, returns true. Otherwise, if the button is not inserted, this function returns false.

Get the maximum number of buttons which this tuple can contain.

Returns the number of buttons in the ButtonTuple which are not None.

Returns an iterator over this tuple.

Trait Implementations

impl Clone for ButtonTuple
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for ButtonTuple
[src]

impl Debug for ButtonTuple
[src]

Formats the value using the given formatter.

impl Default for ButtonTuple
[src]

Returns the "default value" for a type. Read more

impl Eq for ButtonTuple
[src]

impl Hash for ButtonTuple
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialEq for ButtonTuple
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl IntoIterator for ButtonTuple
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more