pub struct Adapted<'a> {
pub data: Cow<'a, [u8]>,
pub descriptor: PixelDescriptor,
pub width: u32,
pub rows: u32,
}Expand description
Result of format adaptation: the converted data and its descriptor.
Fields§
§data: Cow<'a, [u8]>Pixel data — borrowed if no conversion was needed, owned otherwise.
descriptor: PixelDescriptorThe pixel format of data.
width: u32Width of the pixel data.
rows: u32Number of rows.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Adapted<'a>
impl<'a> RefUnwindSafe for Adapted<'a>
impl<'a> Send for Adapted<'a>
impl<'a> Sync for Adapted<'a>
impl<'a> Unpin for Adapted<'a>
impl<'a> UnsafeUnpin for Adapted<'a>
impl<'a> UnwindSafe for Adapted<'a>
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