pub struct SegmentationMask {
pub width: usize,
pub height: usize,
pub bytes_per_row: usize,
pub bytes: Vec<u8>,
}Available on crate feature
segmentation only.Expand description
A single grayscale mask in row-major byte order.
Fields§
§width: usize§height: usize§bytes_per_row: usize§bytes: Vec<u8>Trait Implementations§
Source§impl Clone for SegmentationMask
impl Clone for SegmentationMask
Source§fn clone(&self) -> SegmentationMask
fn clone(&self) -> SegmentationMask
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 SegmentationMask
impl Debug for SegmentationMask
Source§impl PartialEq for SegmentationMask
impl PartialEq for SegmentationMask
Source§fn eq(&self, other: &SegmentationMask) -> bool
fn eq(&self, other: &SegmentationMask) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SegmentationMask
impl StructuralPartialEq for SegmentationMask
Auto Trait Implementations§
impl Freeze for SegmentationMask
impl RefUnwindSafe for SegmentationMask
impl Send for SegmentationMask
impl Sync for SegmentationMask
impl Unpin for SegmentationMask
impl UnsafeUnpin for SegmentationMask
impl UnwindSafe for SegmentationMask
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