pub enum MemoryOrderLayout {
HeightsWidthsChannels,
ChannelsHeightsWidths,
WidthsHeightsChannels,
HeightsChannelsWidths,
ChannelsWidthsHeights,
WidthsChannelsHeights,
}Expand description
Represents the memory layout of an image array.
This enum defines the possible memory layouts for image data:
- HeightsWidthsChannels: Row-major format (default)
- ChannelsHeightsWidths: Common in machine learning
- WidthsHeightsChannels: Cartesian format
- HeightsChannelsWidths: Alternative format
- ChannelsWidthsHeights: Alternative format
- WidthsChannelsHeights: Alternative format
Variants§
HeightsWidthsChannels
ChannelsHeightsWidths
WidthsHeightsChannels
HeightsChannelsWidths
ChannelsWidthsHeights
WidthsChannelsHeights
Trait Implementations§
Source§impl Clone for MemoryOrderLayout
impl Clone for MemoryOrderLayout
Source§fn clone(&self) -> MemoryOrderLayout
fn clone(&self) -> MemoryOrderLayout
Returns a duplicate of the value. Read more
1.0.0 · 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 MemoryOrderLayout
impl Debug for MemoryOrderLayout
Source§impl PartialEq for MemoryOrderLayout
impl PartialEq for MemoryOrderLayout
impl Copy for MemoryOrderLayout
impl StructuralPartialEq for MemoryOrderLayout
Auto Trait Implementations§
impl Freeze for MemoryOrderLayout
impl RefUnwindSafe for MemoryOrderLayout
impl Send for MemoryOrderLayout
impl Sync for MemoryOrderLayout
impl Unpin for MemoryOrderLayout
impl UnwindSafe for MemoryOrderLayout
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