pub struct CuImageBufferFormat {
pub width: u32,
pub height: u32,
pub stride: u32,
pub pixel_format: [u8; 4],
}Fields§
§width: u32§height: u32§stride: u32§pixel_format: [u8; 4]Implementations§
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for CuImageBufferFormat
impl<'__de, __Context> BorrowDecode<'__de, __Context> for CuImageBufferFormat
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for CuImageBufferFormat
impl Clone for CuImageBufferFormat
Source§fn clone(&self) -> CuImageBufferFormat
fn clone(&self) -> CuImageBufferFormat
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 CuImageBufferFormat
impl Debug for CuImageBufferFormat
Source§impl<__Context> Decode<__Context> for CuImageBufferFormat
impl<__Context> Decode<__Context> for CuImageBufferFormat
Source§impl Default for CuImageBufferFormat
impl Default for CuImageBufferFormat
Source§fn default() -> CuImageBufferFormat
fn default() -> CuImageBufferFormat
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CuImageBufferFormat
impl<'de> Deserialize<'de> for CuImageBufferFormat
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Encode for CuImageBufferFormat
impl Encode for CuImageBufferFormat
Source§impl Serialize for CuImageBufferFormat
impl Serialize for CuImageBufferFormat
impl Copy for CuImageBufferFormat
Auto Trait Implementations§
impl Freeze for CuImageBufferFormat
impl RefUnwindSafe for CuImageBufferFormat
impl Send for CuImageBufferFormat
impl Sync for CuImageBufferFormat
impl Unpin for CuImageBufferFormat
impl UnwindSafe for CuImageBufferFormat
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ElementType for T
impl<T> ElementType for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more