Struct divans::Speed [−][src]
pub struct Speed(_, _);
Methods
impl Speed
[src]
impl Speed
pub const ENCODER_DEFAULT_PALETTE: [Speed; 15]
ENCODER_DEFAULT_PALETTE: [Speed; 15] = [Speed(0, 1024), Speed(2, 1024), Speed(1, 128), Speed(1, 16384), Speed(2, 2048), Speed(4, 1024), Speed(8, 8192), Speed(16, 48), Speed(16, 8192), Speed(32, 4096), Speed(64, 16384), Speed(128, 256), Speed(128, 16384), Speed(512, 16384), Speed(1664, 16384)]
pub const GEOLOGIC: Speed
GEOLOGIC: Speed = Speed(1, 16384)
pub const GLACIAL: Speed
GLACIAL: Speed = Speed(4, 2560)
pub const MUD: Speed
MUD: Speed = Speed(16, 8192)
pub const SLOW: Speed
SLOW: Speed = Speed(32, 4096)
pub const MED: Speed
MED: Speed = Speed(48, 16384)
pub const FAST: Speed
FAST: Speed = Speed(96, 16384)
pub const PLANE: Speed
PLANE: Speed = Speed(128, 16384)
pub const ROCKET: Speed
ROCKET: Speed = Speed(384, 16384)
pub fn to_f8_tuple(&self) -> (u8, u8)
[src]
pub fn to_f8_tuple(&self) -> (u8, u8)
pub fn from_f8_tuple(inp: (u8, u8)) -> Self
[src]
pub fn from_f8_tuple(inp: (u8, u8)) -> Self
pub fn cold_new(inc: i16, max: i16) -> Speed
[src]
pub fn cold_new(inc: i16, max: i16) -> Speed
pub fn new(inc: i16, max: i16) -> Speed
[src]
pub fn new(inc: i16, max: i16) -> Speed
pub fn lim(&self) -> i16
[src]
pub fn lim(&self) -> i16
pub fn inc_and_gets(&mut self, ander: i16) -> Speed
[src]
pub fn inc_and_gets(&mut self, ander: i16) -> Speed
pub fn lim_or_gets(&mut self, orer: i16)
[src]
pub fn lim_or_gets(&mut self, orer: i16)
pub fn inc(&self) -> i16
[src]
pub fn inc(&self) -> i16
pub fn set_lim(&mut self, lim: i16)
[src]
pub fn set_lim(&mut self, lim: i16)
pub fn set_inc(&mut self, inc: i16)
[src]
pub fn set_inc(&mut self, inc: i16)
Trait Implementations
impl Clone for Speed
[src]
impl Clone for Speed
fn clone(&self) -> Speed
[src]
fn clone(&self) -> Speed
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for Speed
[src]
impl Copy for Speed
impl PartialEq for Speed
[src]
impl PartialEq for Speed
fn eq(&self, other: &Speed) -> bool
[src]
fn eq(&self, other: &Speed) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Speed) -> bool
[src]
fn ne(&self, other: &Speed) -> bool
This method tests for !=
.
impl Eq for Speed
[src]
impl Eq for Speed
impl Debug for Speed
[src]
impl Debug for Speed
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Hash for Speed
[src]
impl Hash for Speed
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl FromStr for Speed
[src]
impl FromStr for Speed