pub struct PixelBufferObservation {
pub width: usize,
pub height: usize,
pub bytes_per_row: usize,
pub bytes: Vec<u8>,
pub feature_name: Option<String>,
}Expand description
A Rust wrapper for VNPixelBufferObservation.
Fields§
§width: usize§height: usize§bytes_per_row: usize§bytes: Vec<u8>§feature_name: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for PixelBufferObservation
impl Clone for PixelBufferObservation
Source§fn clone(&self) -> PixelBufferObservation
fn clone(&self) -> PixelBufferObservation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PixelBufferObservation
impl Debug for PixelBufferObservation
Source§impl From<SegmentationMask> for PixelBufferObservation
Available on crate feature segmentation only.
impl From<SegmentationMask> for PixelBufferObservation
Available on crate feature
segmentation only.Source§fn from(value: SegmentationMask) -> Self
fn from(value: SegmentationMask) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PixelBufferObservation
impl PartialEq for PixelBufferObservation
Source§fn eq(&self, other: &PixelBufferObservation) -> bool
fn eq(&self, other: &PixelBufferObservation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PixelBufferObservation
impl StructuralPartialEq for PixelBufferObservation
Auto Trait Implementations§
impl Freeze for PixelBufferObservation
impl RefUnwindSafe for PixelBufferObservation
impl Send for PixelBufferObservation
impl Sync for PixelBufferObservation
impl Unpin for PixelBufferObservation
impl UnsafeUnpin for PixelBufferObservation
impl UnwindSafe for PixelBufferObservation
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