#[repr(transparent)]pub struct SampleStride(pub usize);Expand description
Row stride measured in scalar samples (not bytes).
Used by PlaneBuf::from_samples_strided,
PlaneView::from_samples_strided, and
PlaneViewMut::from_samples_strided so
sample-count strides can never be confused with byte strides at the call site.
For tightly packed planes (stride == width * spec.components), use the 4-argument
from_samples constructors instead.
Tuple Fields§
§0: usizeImplementations§
Source§impl SampleStride
impl SampleStride
Trait Implementations§
Source§impl Clone for SampleStride
impl Clone for SampleStride
Source§fn clone(&self) -> SampleStride
fn clone(&self) -> SampleStride
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 moreimpl Copy for SampleStride
Source§impl Debug for SampleStride
impl Debug for SampleStride
Source§impl Display for SampleStride
impl Display for SampleStride
impl Eq for SampleStride
Source§impl Hash for SampleStride
impl Hash for SampleStride
Source§impl Ord for SampleStride
impl Ord for SampleStride
Source§fn cmp(&self, other: &SampleStride) -> Ordering
fn cmp(&self, other: &SampleStride) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SampleStride
impl PartialEq for SampleStride
Source§impl PartialOrd for SampleStride
impl PartialOrd for SampleStride
impl StructuralPartialEq for SampleStride
Auto Trait Implementations§
impl Freeze for SampleStride
impl RefUnwindSafe for SampleStride
impl Send for SampleStride
impl Sync for SampleStride
impl Unpin for SampleStride
impl UnsafeUnpin for SampleStride
impl UnwindSafe for SampleStride
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