#[repr(u32)]
pub enum FormatKind {
Integer,
Float,
Dxt,
DepthStencil,
Special,
}
Available on crate feature
tex
only.Expand description
The overarching kind of a texture format.
Variants
Integer
Float
Dxt
DepthStencil
Special
Trait Implementations
sourceimpl Debug for FormatKind
impl Debug for FormatKind
sourceimpl TryFrom<u32> for FormatKind
impl TryFrom<u32> for FormatKind
type Error = TryFromPrimitiveError<FormatKind>
type Error = TryFromPrimitiveError<FormatKind>
The type returned in the event of a conversion error.
sourcefn try_from(number: u32) -> Result<Self, TryFromPrimitiveError<Self>>
fn try_from(number: u32) -> Result<Self, TryFromPrimitiveError<Self>>
Performs the conversion.
sourceimpl TryFromPrimitive for FormatKind
impl TryFromPrimitive for FormatKind
type Primitive = u32
const NAME: &'static str = _
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations
impl RefUnwindSafe for FormatKind
impl Send for FormatKind
impl Sync for FormatKind
impl Unpin for FormatKind
impl UnwindSafe for FormatKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more