#[non_exhaustive]pub enum RectangleError {
Empty,
NonFinite,
}Expand description
Why no rectangle was built.
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.
Trait Implementations§
Source§impl Clone for RectangleError
impl Clone for RectangleError
impl Copy for RectangleError
Source§impl Debug for RectangleError
impl Debug for RectangleError
impl Eq for RectangleError
Source§impl PartialEq for RectangleError
impl PartialEq for RectangleError
impl StructuralPartialEq for RectangleError
Auto Trait Implementations§
impl Freeze for RectangleError
impl RefUnwindSafe for RectangleError
impl Send for RectangleError
impl Sync for RectangleError
impl Unpin for RectangleError
impl UnsafeUnpin for RectangleError
impl UnwindSafe for RectangleError
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