pub enum ResizeError {
Swapchain(SwapchainCreationError),
Image(ImageCreationError),
UnsizedWindow,
}
Expand description
Error during resizing of viewports.
Variants§
Swapchain(SwapchainCreationError)
Error during recreation of the Swapchain
.
Image(ImageCreationError)
Error during recreation of depth image of the Swapchain
.
UnsizedWindow
The window provided has no apparent size.
Trait Implementations§
Source§impl Clone for ResizeError
impl Clone for ResizeError
Source§fn clone(&self) -> ResizeError
fn clone(&self) -> ResizeError
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 ResizeError
impl Debug for ResizeError
Source§impl From<ImageCreationError> for ResizeError
impl From<ImageCreationError> for ResizeError
Source§fn from(err: ImageCreationError) -> ResizeError
fn from(err: ImageCreationError) -> ResizeError
Converts to this type from the input type.
Source§impl From<SwapchainCreationError> for ResizeError
impl From<SwapchainCreationError> for ResizeError
Source§fn from(err: SwapchainCreationError) -> ResizeError
fn from(err: SwapchainCreationError) -> ResizeError
Converts to this type from the input type.
Source§impl PartialEq for ResizeError
impl PartialEq for ResizeError
impl Eq for ResizeError
impl StructuralPartialEq for ResizeError
Auto Trait Implementations§
impl Freeze for ResizeError
impl RefUnwindSafe for ResizeError
impl Send for ResizeError
impl Sync for ResizeError
impl Unpin for ResizeError
impl UnwindSafe for ResizeError
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§impl<T> Content for T
impl<T> Content for T
Source§fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
Source§fn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.
Source§fn indiv_size() -> usize
fn indiv_size() -> usize
Returns the size of an individual element.