Struct gfx::format::U8Norm
[−]
[src]
pub struct U8Norm(pub u8);
Methods
impl U8Norm
[src]
fn cast2(v: [u8; 2]) -> [U8Norm; 2]
[src]
Convert a 2-element slice.
fn cast3(v: [u8; 3]) -> [U8Norm; 3]
[src]
Convert a 3-element slice.
fn cast4(v: [u8; 4]) -> [U8Norm; 4]
[src]
Convert a 4-element slice.
fn cast_slice(slice: &[u8]) -> &[U8Norm]
[src]
Convert a generic slice by transmutation.
Trait Implementations
impl Ord for U8Norm
[src]
impl Copy for U8Norm
[src]
impl Clone for U8Norm
[src]
fn clone(&self) -> U8Norm
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Pod for U8Norm
[src]
impl Formatted for U8Norm
[src]
type Surface = R8
Associated surface type.
type Channel = Unorm
Associated channel type.
type View = <Unorm as ChannelTyped>::ShaderType
Shader view type of this format.
fn get_format() -> Format
[src]
Return the run-time value of the type.
impl PartialOrd<U8Norm> for U8Norm
[src]
fn partial_cmp(&self, __arg_0: &U8Norm) -> Option<Ordering>
[src]
fn lt(&self, __arg_0: &U8Norm) -> bool
[src]
fn le(&self, __arg_0: &U8Norm) -> bool
[src]
fn gt(&self, __arg_0: &U8Norm) -> bool
[src]
fn ge(&self, __arg_0: &U8Norm) -> bool
[src]
impl Hash for U8Norm
[src]
fn hash<__H>(&self, __arg_0: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
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]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl From<u8> for U8Norm
[src]
impl PartialEq<U8Norm> for U8Norm
[src]
fn eq(&self, __arg_0: &U8Norm) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &U8Norm) -> bool
[src]
This method tests for !=
.
impl Debug for U8Norm
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter.