pub enum CamlError {
NotFound,
Failure(&'static str),
InvalidArgument(&'static str),
OutOfMemory,
StackOverflow,
SysError(Value),
EndOfFile,
ZeroDivide,
ArrayBoundError,
SysBlockedIo,
Exception(Value),
WithArg(Value, Value),
}
Expand description
Errors that are translated directly into OCaml exceptions
Variants
NotFound
Not_found
Failure(&'static str)
Failure
InvalidArgument(&'static str)
Invalid_argument
OutOfMemory
Out_of_memory
StackOverflow
Stack_overflow
SysError(Value)
Sys_error
EndOfFile
End_of_file
ZeroDivide
Zero_divide
ArrayBoundError
Array bound error
SysBlockedIo
Sys_blocked_io
Exception(Value)
A pre-allocated OCaml exception
WithArg(Value, Value)
An exception type and argument
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CamlError
impl !Send for CamlError
impl !Sync for CamlError
impl Unpin for CamlError
impl UnwindSafe for CamlError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more