Struct ktx2::TransferFunction
source · pub struct TransferFunction(pub NonZeroU32);
Tuple Fields§
§0: NonZeroU32
Implementations§
source§impl TransferFunction
impl TransferFunction
pub fn new(x: u32) -> Option<Self>
pub const Linear: Self = _
pub const SRGB: Self = _
pub const ITU: Self = _
pub const NTSC: Self = _
pub const SLOG: Self = _
pub const SLOG2: Self = _
pub const BT1886: Self = _
pub const HLGOETF: Self = _
pub const HLGEOTF: Self = _
pub const PQEOTF: Self = _
pub const PQOETF: Self = _
pub const DCIP3: Self = _
pub const PALOETF: Self = _
pub const PAL625EOTF: Self = _
pub const ST240: Self = _
pub const ACESCC: Self = _
pub const ACESCCT: Self = _
pub const AdobeRGB: Self = _
Trait Implementations§
source§impl Clone for TransferFunction
impl Clone for TransferFunction
source§fn clone(&self) -> TransferFunction
fn clone(&self) -> TransferFunction
Returns a copy 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 TransferFunction
impl Debug for TransferFunction
source§impl Hash for TransferFunction
impl Hash for TransferFunction
source§impl Ord for TransferFunction
impl Ord for TransferFunction
source§fn cmp(&self, other: &TransferFunction) -> Ordering
fn cmp(&self, other: &TransferFunction) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for TransferFunction
impl PartialEq for TransferFunction
source§fn eq(&self, other: &TransferFunction) -> bool
fn eq(&self, other: &TransferFunction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for TransferFunction
impl PartialOrd for TransferFunction
source§fn partial_cmp(&self, other: &TransferFunction) -> Option<Ordering>
fn partial_cmp(&self, other: &TransferFunction) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for TransferFunction
impl Eq for TransferFunction
impl StructuralEq for TransferFunction
impl StructuralPartialEq for TransferFunction
Auto Trait Implementations§
impl RefUnwindSafe for TransferFunction
impl Send for TransferFunction
impl Sync for TransferFunction
impl Unpin for TransferFunction
impl UnwindSafe for TransferFunction
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