pub enum MemoryFormatDef {
Contiguous,
Preserve,
ChannelsLast,
ChannelsLast3d,
}Expand description
Remote serde implementation for MemoryFormat
Variants§
Implementations§
Source§impl MemoryFormatDef
impl MemoryFormatDef
pub fn serialize<__S>(
__self: &MemoryFormat,
__serializer: __S,
) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
Source§impl<'de> MemoryFormatDef
impl<'de> MemoryFormatDef
pub fn deserialize<__D>(__deserializer: __D) -> Result<MemoryFormat, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for MemoryFormatDef
impl RefUnwindSafe for MemoryFormatDef
impl Send for MemoryFormatDef
impl Sync for MemoryFormatDef
impl Unpin for MemoryFormatDef
impl UnsafeUnpin for MemoryFormatDef
impl UnwindSafe for MemoryFormatDef
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more