pub enum ImageStateOrLayout {
State(ImageState),
Layout(Layout),
}
Expand description
Either image state or just layout for image that is not used by device.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for ImageStateOrLayout
impl Clone for ImageStateOrLayout
Source§fn clone(&self) -> ImageStateOrLayout
fn clone(&self) -> ImageStateOrLayout
Returns a copy 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 ImageStateOrLayout
impl Debug for ImageStateOrLayout
Source§impl From<ImageState> for ImageStateOrLayout
impl From<ImageState> for ImageStateOrLayout
Source§fn from(state: ImageState) -> Self
fn from(state: ImageState) -> Self
Converts to this type from the input type.
Source§impl From<Layout> for ImageStateOrLayout
impl From<Layout> for ImageStateOrLayout
impl Copy for ImageStateOrLayout
Auto Trait Implementations§
impl Freeze for ImageStateOrLayout
impl RefUnwindSafe for ImageStateOrLayout
impl Send for ImageStateOrLayout
impl Sync for ImageStateOrLayout
impl Unpin for ImageStateOrLayout
impl UnwindSafe for ImageStateOrLayout
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)