Struct gfx::device::attrib::Floater [] [src]

pub struct Floater<T>(pub T);

Floating-point version of integer attributes.

Methods

impl<T: Copy> Floater<T>

fn cast2(a: [T; 2]) -> [Floater<T>; 2]

Cast a fixed-size2 array to floating-point.

fn cast3(a: [T; 3]) -> [Floater<T>; 3]

Cast a fixed-size3 array to floating-point.

fn cast4(a: [T; 4]) -> [Floater<T>; 4]

Cast a fixed-size4 array to floating-point.

Trait Implementations

impl ToType for Floater<u8>

fn describe() -> Type

impl ToType for Floater<u16>

fn describe() -> Type

impl ToType for Floater<u32>

fn describe() -> Type

impl ToType for Floater<i8>

fn describe() -> Type

impl ToType for Floater<i16>

fn describe() -> Type

impl ToType for Floater<i32>

fn describe() -> Type

Derived Implementations

impl<T: Hash> Hash for Floater<T> where T: Hash

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl<T: PartialEq> PartialEq for Floater<T> where T: PartialEq

fn eq(&self, __arg_0: &Floater<T>) -> bool

fn ne(&self, __arg_0: &Floater<T>) -> bool

impl<T: Debug> Debug for Floater<T> where T: Debug

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl<T: Copy> Copy for Floater<T> where T: Copy

impl<T: Clone> Clone for Floater<T> where T: Clone

fn clone(&self) -> Floater<T>

fn clone_from(&mut self, source: &Self)