pub enum Cause {
Static(&'static str),
Owned(String),
}Expand description
A short, cheap explanation attached to an OgeomError.
Static in the common case so that returning an error costs no allocation on paths that are hit often: failed intersections inside a boolean, for instance, are routine control flow rather than exceptional.
Variants§
Trait Implementations§
impl Eq for Cause
impl StructuralPartialEq for Cause
Auto Trait Implementations§
impl Freeze for Cause
impl RefUnwindSafe for Cause
impl Send for Cause
impl Sync for Cause
impl Unpin for Cause
impl UnsafeUnpin for Cause
impl UnwindSafe for Cause
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