Struct gfx::format::U16Norm[][src]

pub struct U16Norm(pub u16);

Implementations

impl U16Norm[src]

pub fn cast2(v: [u16; 2]) -> [U16Norm; 2][src]

Convert a 2-element slice.

pub fn cast3(v: [u16; 3]) -> [U16Norm; 3][src]

Convert a 3-element slice.

pub fn cast4(v: [u16; 4]) -> [U16Norm; 4][src]

Convert a 4-element slice.

pub fn cast_slice(slice: &[u16]) -> &[U16Norm]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

Convert a generic slice by transmutation.

Trait Implementations

impl Clone for U16Norm[src]

impl Copy for U16Norm[src]

impl Debug for U16Norm[src]

impl Eq for U16Norm[src]

impl Formatted for U16Norm[src]

type Surface = R16

Associated surface type.

type Channel = Unorm

Associated channel type.

type View = <Unorm as ChannelTyped>::ShaderType

Shader view type of this format.

impl From<u16> for U16Norm[src]

impl Hash for U16Norm[src]

impl Ord for U16Norm[src]

impl PartialEq<U16Norm> for U16Norm[src]

impl PartialOrd<U16Norm> for U16Norm[src]

impl Pod for U16Norm[src]

impl StructuralEq for U16Norm[src]

impl StructuralPartialEq for U16Norm[src]

Auto Trait Implementations

impl RefUnwindSafe for U16Norm

impl Send for U16Norm

impl Sync for U16Norm

impl Unpin for U16Norm

impl UnwindSafe for U16Norm

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.