Enum hotg_rune_core::PixelFormat
source · [−]#[repr(C)]
pub enum PixelFormat {
RGB,
BGR,
GrayScale,
}
Variants
RGB
BGR
GrayScale
Trait Implementations
sourceimpl Clone for PixelFormat
impl Clone for PixelFormat
sourcefn clone(&self) -> PixelFormat
fn clone(&self) -> PixelFormat
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PixelFormat
impl Debug for PixelFormat
sourceimpl From<PixelFormat> for i32
impl From<PixelFormat> for i32
sourcefn from(p: PixelFormat) -> i32
fn from(p: PixelFormat) -> i32
Performs the conversion.
sourceimpl From<PixelFormat> for u32
impl From<PixelFormat> for u32
sourcefn from(p: PixelFormat) -> u32
fn from(p: PixelFormat) -> u32
Performs the conversion.
sourceimpl From<PixelFormat> for Value
impl From<PixelFormat> for Value
sourcefn from(p: PixelFormat) -> Value
fn from(p: PixelFormat) -> Value
Performs the conversion.
sourceimpl Hash for PixelFormat
impl Hash for PixelFormat
sourceimpl PartialEq<PixelFormat> for PixelFormat
impl PartialEq<PixelFormat> for PixelFormat
sourceimpl TryFrom<Value> for PixelFormat
impl TryFrom<Value> for PixelFormat
type Error = PixelFormatConversionError
type Error = PixelFormatConversionError
The type returned in the event of a conversion error.
sourceimpl TryFrom<i32> for PixelFormat
impl TryFrom<i32> for PixelFormat
type Error = PixelFormatConversionError
type Error = PixelFormatConversionError
The type returned in the event of a conversion error.
impl Copy for PixelFormat
impl Eq for PixelFormat
impl StructuralEq for PixelFormat
impl StructuralPartialEq for PixelFormat
Auto Trait Implementations
impl RefUnwindSafe for PixelFormat
impl Send for PixelFormat
impl Sync for PixelFormat
impl Unpin for PixelFormat
impl UnwindSafe for PixelFormat
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more