Enum DrawError
#[non_exhaustive]pub enum DrawError {
NonFinite,
InvalidWidth,
CapacityExceeded,
}Expand description
Why a whole geometry batch was refused; nothing from that batch was appended.
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.
NonFinite
A coordinate or width is not finite, or a camera-relative coordinate overflows f32.
InvalidWidth
A finite line width is zero or negative.
CapacityExceeded
The batch would exceed this view’s setup-time capacity.
Trait Implementations§
impl Copy for DrawError
impl Eq for DrawError
impl StructuralPartialEq for DrawError
Auto Trait Implementations§
impl Freeze for DrawError
impl RefUnwindSafe for DrawError
impl Send for DrawError
impl Sync for DrawError
impl Unpin for DrawError
impl UnsafeUnpin for DrawError
impl UnwindSafe for DrawError
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