pub struct FramePlanesMut<'a, T> { /* private fields */ }Expand description
Mutable borrowed Y/U/V plane slices stored behind stable raw pointers.
Implementations§
Source§impl<'a, T> FramePlanesMut<'a, T>
impl<'a, T> FramePlanesMut<'a, T>
Sourcepub fn new(planes: [Option<&'a mut [T]>; 3]) -> Self
pub fn new(planes: [Option<&'a mut [T]>; 3]) -> Self
Creates a mutable plane set from optional Y, U, and V slices.
Sourcepub fn plane(&self, plane: usize) -> Result<&[T]>
pub fn plane(&self, plane: usize) -> Result<&[T]>
Returns an immutable view of the requested plane.
Sourcepub fn plane_mut(&mut self, plane: usize) -> Result<&mut [T]>
pub fn plane_mut(&mut self, plane: usize) -> Result<&mut [T]>
Returns a mutable view of the requested plane.
Sourcepub unsafe fn plane_split(&mut self, plane: usize) -> Result<(&[T], &mut [T])>
pub unsafe fn plane_split(&mut self, plane: usize) -> Result<(&[T], &mut [T])>
Returns immutable and mutable views over the same plane backing storage.
§Safety
The caller must ensure the returned immutable and mutable slices are only used on non-overlapping logical regions of the same underlying plane.
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> !Send for FramePlanesMut<'a, T>
impl<'a, T> !Sync for FramePlanesMut<'a, T>
impl<'a, T> !UnwindSafe for FramePlanesMut<'a, T>
impl<'a, T> Freeze for FramePlanesMut<'a, T>
impl<'a, T> RefUnwindSafe for FramePlanesMut<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Unpin for FramePlanesMut<'a, T>
impl<'a, T> UnsafeUnpin for FramePlanesMut<'a, T>
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