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

pub struct FixedPoint<T>(pub T);

Fixed-point version of integer attributes.

Methods

impl<T: Copy> FixedPoint<T>

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

Cast a fixed-size2 array to fixed-point.

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

Cast a fixed-size3 array to fixed-point.

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

Cast a fixed-size4 array to fixed-point.

Trait Implementations

impl ToType for FixedPoint<u8>

fn describe() -> Type

impl ToType for FixedPoint<u16>

fn describe() -> Type

impl ToType for FixedPoint<u32>

fn describe() -> Type

impl ToType for FixedPoint<i8>

fn describe() -> Type

impl ToType for FixedPoint<i16>

fn describe() -> Type

impl ToType for FixedPoint<i32>

fn describe() -> Type

Derived Implementations

impl<T: Hash> Hash for FixedPoint<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 FixedPoint<T> where T: PartialEq

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

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

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

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

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

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

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

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