pub enum Failure {
DivideByZero,
TooLarge,
TooLong,
NegativePosition(i64),
NoItem {
position: usize,
len: usize,
},
TooDeep {
function: String,
},
DownloadIntoVariable,
DialogIntoVariable,
Dialog(String),
}Variants§
DivideByZero
TooLarge
An int result outside the 64-bit range.
TooLong
A length that doesn’t fit in an int.
NegativePosition(i64)
NoItem
TooDeep
A call deeper than MAX_CALL_DEPTH, into the function named function.
DownloadIntoVariable
DialogIntoVariable
A file dialog’s answer bound to a variable, which is gone by the time it closes.
Dialog(String)
The platform couldn’t show a file dialog or read its answer, for this reason.
Trait Implementations§
impl Eq for Failure
impl StructuralPartialEq for Failure
Auto Trait Implementations§
impl Freeze for Failure
impl RefUnwindSafe for Failure
impl Send for Failure
impl Sync for Failure
impl Unpin for Failure
impl UnsafeUnpin for Failure
impl UnwindSafe for Failure
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