Struct libcamera::pixel_format::PixelFormats
source · pub struct PixelFormats { /* private fields */ }
Expand description
Vector of PixelFormat
Implementations§
source§impl PixelFormats
impl PixelFormats
sourcepub fn len(&self) -> usize
pub fn len(&self) -> usize
Number of PixelFormat
sourcepub fn get(&self, index: usize) -> Option<PixelFormat>
pub fn get(&self, index: usize) -> Option<PixelFormat>
Returns PixelFormat at a given index.
Return None if index is out of range.
sourcepub unsafe fn get_unchecked(&self, index: usize) -> PixelFormat
pub unsafe fn get_unchecked(&self, index: usize) -> PixelFormat
Returns PixelFormat at a given index without checking bounds.
§Safety
index
must be less than PixelFormats::len().
Trait Implementations§
source§impl Drop for PixelFormats
impl Drop for PixelFormats
source§impl<'d> IntoIterator for &'d PixelFormats
impl<'d> IntoIterator for &'d PixelFormats
Auto Trait Implementations§
impl Freeze for PixelFormats
impl RefUnwindSafe for PixelFormats
impl !Send for PixelFormats
impl !Sync for PixelFormats
impl Unpin for PixelFormats
impl UnwindSafe for PixelFormats
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