#[non_exhaustive]pub enum PlaneError {
TooManySurfaces {
surfaces: usize,
slots: usize,
},
}Expand description
Why the writes could not be computed.
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.
TooManySurfaces
More decorations than reserved planes.
Refused rather than truncated: dropping the surfaces past the end would leave windows silently undecorated, and the caller reserved the planes knowing how many it wanted.
Trait Implementations§
Source§impl Clone for PlaneError
impl Clone for PlaneError
impl Copy for PlaneError
Source§impl Debug for PlaneError
impl Debug for PlaneError
Source§impl Display for PlaneError
impl Display for PlaneError
impl Eq for PlaneError
Source§impl Error for PlaneError
impl Error for PlaneError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for PlaneError
impl PartialEq for PlaneError
impl StructuralPartialEq for PlaneError
Auto Trait Implementations§
impl Freeze for PlaneError
impl RefUnwindSafe for PlaneError
impl Send for PlaneError
impl Sync for PlaneError
impl Unpin for PlaneError
impl UnsafeUnpin for PlaneError
impl UnwindSafe for PlaneError
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