pub struct Image<FD> {
pub drm_format: DrmFormat,
pub planes: ImagePlane<FD>,
}
Fields§
§drm_format: DrmFormat
§planes: ImagePlane<FD>
Implementations§
§impl<FD> Image<FD>
impl<FD> Image<FD>
pub fn planes_map<FD2>( self, f: impl Fn(ImagePlane<FD>) -> ImagePlane<FD2> ) -> Image<FD2>
pub fn planes_ref_map<FD2>( &self, f: impl Fn(&ImagePlane<FD>) -> ImagePlane<FD2> ) -> Image<FD2>
Trait Implementations§
§impl<FD> Clone for Image<FD>where
ImagePlane<FD>: Clone,
impl<FD> Clone for Image<FD>where ImagePlane<FD>: Clone,
§impl<FD> SerJson for Image<FD>where
FD: SerJson,
impl<FD> SerJson for Image<FD>where FD: SerJson,
fn ser_json(&self, d: usize, s: &mut SerJsonState)
fn serialize_json(&self) -> String
impl<FD> Copy for Image<FD>where ImagePlane<FD>: Copy,
impl<FD> StructuralPartialEq for Image<FD>
Auto Trait Implementations§
impl<FD> RefUnwindSafe for Image<FD>where FD: RefUnwindSafe,
impl<FD> Send for Image<FD>where FD: Send,
impl<FD> Sync for Image<FD>where FD: Sync,
impl<FD> Unpin for Image<FD>where FD: Unpin,
impl<FD> UnwindSafe for Image<FD>where FD: UnwindSafe,
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