#[repr(C)]pub struct r32g32b32_Sfloat {
pub r: f32,
pub g: f32,
pub b: f32,
}
Expand description
Linear RGB data, f32
per channel.
Fields§
§r: f32
§g: f32
§b: f32
Implementations§
Trait Implementations§
Source§impl Clone for r32g32b32_Sfloat
impl Clone for r32g32b32_Sfloat
Source§fn clone(&self) -> r32g32b32_Sfloat
fn clone(&self) -> r32g32b32_Sfloat
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for r32g32b32_Sfloat
impl Debug for r32g32b32_Sfloat
Source§impl Default for r32g32b32_Sfloat
impl Default for r32g32b32_Sfloat
Source§fn default() -> r32g32b32_Sfloat
fn default() -> r32g32b32_Sfloat
Returns the “default value” for a type. Read more
Source§impl From<r32g32b32_Sfloat> for r16g16b16_Unorm
impl From<r32g32b32_Sfloat> for r16g16b16_Unorm
Source§fn from(sf: r32g32b32_Sfloat) -> Self
fn from(sf: r32g32b32_Sfloat) -> Self
Converts to this type from the input type.
Source§impl From<r32g32b32_Sfloat> for r32g32b32a32_Sfloat
impl From<r32g32b32_Sfloat> for r32g32b32a32_Sfloat
Source§fn from(_: r32g32b32_Sfloat) -> Self
fn from(_: r32g32b32_Sfloat) -> Self
Converts to this type from the input type.
Source§impl From<r32g32b32_Sfloat> for r8g8b8_Srgb
impl From<r32g32b32_Sfloat> for r8g8b8_Srgb
Source§fn from(sf: r32g32b32_Sfloat) -> Self
fn from(sf: r32g32b32_Sfloat) -> Self
Converts to this type from the input type.
Source§impl From<r32g32b32_Sfloat> for r8g8b8_Unorm
impl From<r32g32b32_Sfloat> for r8g8b8_Unorm
Source§fn from(sf: r32g32b32_Sfloat) -> Self
fn from(sf: r32g32b32_Sfloat) -> Self
Converts to this type from the input type.
Source§impl From<r32g32b32_Sfloat> for r8g8b8a8_Unorm
impl From<r32g32b32_Sfloat> for r8g8b8a8_Unorm
Source§fn from(x: r32g32b32_Sfloat) -> Self
fn from(x: r32g32b32_Sfloat) -> Self
Converts to this type from the input type.
Source§impl From<r8g8b8_Srgb> for r32g32b32_Sfloat
impl From<r8g8b8_Srgb> for r32g32b32_Sfloat
Source§fn from(_: r8g8b8_Srgb) -> Self
fn from(_: r8g8b8_Srgb) -> Self
Converts to this type from the input type.
Source§impl From<r8g8b8_Unorm> for r32g32b32_Sfloat
impl From<r8g8b8_Unorm> for r32g32b32_Sfloat
Source§fn from(_: r8g8b8_Unorm) -> Self
fn from(_: r8g8b8_Unorm) -> Self
Converts to this type from the input type.
Source§impl PartialEq for r32g32b32_Sfloat
impl PartialEq for r32g32b32_Sfloat
Source§impl PartialOrd for r32g32b32_Sfloat
impl PartialOrd for r32g32b32_Sfloat
impl Copy for r32g32b32_Sfloat
impl Pod for r32g32b32_Sfloat
impl StructuralPartialEq for r32g32b32_Sfloat
Auto Trait Implementations§
impl Freeze for r32g32b32_Sfloat
impl RefUnwindSafe for r32g32b32_Sfloat
impl Send for r32g32b32_Sfloat
impl Sync for r32g32b32_Sfloat
impl Unpin for r32g32b32_Sfloat
impl UnwindSafe for r32g32b32_Sfloat
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.