[−][src]Struct gc_adapter::UnsignedAxis
An unsigned axis, representing a positive or zero value.
Implementations
impl UnsignedAxis
[src]
pub fn from_raw(val: u8) -> Self
[src]
pub fn raw(&self) -> u8
[src]
pub fn float(&self) -> f32
[src]
Return axis as an f32
in the range of [-1.0, 1.0]
pub fn double(&self) -> f64
[src]
Return axis as an f64
in the range of [-1.0, 1.0]
Note: You likely do not want the additional precision.
Trait Implementations
impl BinRead for UnsignedAxis
[src]
type Args = ()
The type of arguments needed to be supplied in order to read this type, usually a tuple. Read more
pub fn read_options<R: Read + Seek>(
__binread_generated_var_reader: &mut R,
__binread_generated_var_options: &ReadOptions,
__binread_generated_var_arguments: Self::Args
) -> BinResult<Self>
[src]
__binread_generated_var_reader: &mut R,
__binread_generated_var_options: &ReadOptions,
__binread_generated_var_arguments: Self::Args
) -> BinResult<Self>
pub fn after_parse<R: Read + Seek>(
&mut self,
__binread_generated_var_reader: &mut R,
__binread_generated_var_options: &ReadOptions,
__binread_generated_var_arguments: Self::Args
) -> BinResult<()>
[src]
&mut self,
__binread_generated_var_reader: &mut R,
__binread_generated_var_options: &ReadOptions,
__binread_generated_var_arguments: Self::Args
) -> BinResult<()>
pub fn read<R>(reader: &mut R) -> Result<Self, Error> where
R: Read + Seek,
[src]
R: Read + Seek,
pub fn read_args<R>(reader: &mut R, args: Self::Args) -> Result<Self, Error> where
R: Read + Seek,
[src]
R: Read + Seek,
pub fn args_default() -> Option<Self::Args>
[src]
impl Debug for UnsignedAxis
[src]
impl Default for UnsignedAxis
[src]
pub fn default() -> UnsignedAxis
[src]
Auto Trait Implementations
impl RefUnwindSafe for UnsignedAxis
impl Send for UnsignedAxis
impl Sync for UnsignedAxis
impl Unpin for UnsignedAxis
impl UnwindSafe for UnsignedAxis
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,