pub struct OwnedRawImage { /* private fields */ }Implementations§
Source§impl OwnedRawImage
impl OwnedRawImage
pub fn new(byte_size: (usize, usize)) -> Result<Self>
Sourcepub fn new_uninit(byte_size: (usize, usize)) -> Result<Self>
pub fn new_uninit(byte_size: (usize, usize)) -> Result<Self>
Allocate an output buffer without zeroing.
§Safety contract
The caller must ensure every byte is written before being read. This is appropriate for output buffers that the decoder will fully populate.
pub fn new_zeroed_with_padding( byte_size: (usize, usize), offset: (usize, usize), padding: (usize, usize), ) -> Result<Self>
pub fn get_rect_including_padding_mut( &mut self, rect: Rect, ) -> RawImageRectMut<'_>
pub fn get_rect_including_padding(&self, rect: Rect) -> RawImageRect<'_>
pub fn get_rect_mut(&mut self, rect: Rect) -> RawImageRectMut<'_>
pub fn get_rect(&self, rect: Rect) -> RawImageRect<'_>
pub fn row_mut(&mut self, row: usize) -> &mut [u8] ⓘ
pub fn row(&self, row: usize) -> &[u8] ⓘ
pub fn byte_size(&self) -> (usize, usize)
pub fn byte_offset(&self) -> (usize, usize)
pub fn byte_padding(&self) -> (usize, usize)
pub fn try_clone(&self) -> Result<OwnedRawImage>
Trait Implementations§
Source§impl Debug for OwnedRawImage
impl Debug for OwnedRawImage
Auto Trait Implementations§
impl Freeze for OwnedRawImage
impl RefUnwindSafe for OwnedRawImage
impl Send for OwnedRawImage
impl Sync for OwnedRawImage
impl Unpin for OwnedRawImage
impl UnsafeUnpin for OwnedRawImage
impl UnwindSafe for OwnedRawImage
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