#[non_exhaustive]pub enum BitPackingAccess {
Fail,
PassThrough,
}Expand description
Full re-export of zenpixels core types (zero module name collisions!).
Policy controlling how zero-copy typed slice borrowing handles non-BitPacking::Full
layouts (e.g. U10_LSB, U12_LSB, P010, Shifted, RGB10A2, RGB565).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Fail
Refuse any layout where layout.packing != BitPacking::Full with
BufferError::IncompatibleLayout (default for row_as, row_samples, and
as_contiguous_*).
PassThrough
Pass raw container storage words through as-is (still enforcing SampleType,
ChannelOrder for pixel structs, channel count for arrays, and alignment).
Trait Implementations§
Source§impl Clone for BitPackingAccess
impl Clone for BitPackingAccess
Source§fn clone(&self) -> BitPackingAccess
fn clone(&self) -> BitPackingAccess
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 BitPackingAccess
Source§impl Debug for BitPackingAccess
impl Debug for BitPackingAccess
Source§impl Default for BitPackingAccess
impl Default for BitPackingAccess
Source§fn default() -> BitPackingAccess
fn default() -> BitPackingAccess
Returns the “default value” for a type. Read more
impl Eq for BitPackingAccess
Source§impl Hash for BitPackingAccess
impl Hash for BitPackingAccess
Source§impl PartialEq for BitPackingAccess
impl PartialEq for BitPackingAccess
impl StructuralPartialEq for BitPackingAccess
Auto Trait Implementations§
impl Freeze for BitPackingAccess
impl RefUnwindSafe for BitPackingAccess
impl Send for BitPackingAccess
impl Sync for BitPackingAccess
impl Unpin for BitPackingAccess
impl UnsafeUnpin for BitPackingAccess
impl UnwindSafe for BitPackingAccess
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