pub struct MissingValueError(pub String);Expand description
Marker for a host failure that should surface to the guest as the built-in
MissingValueError subclass: a read found no value (an index out of range,
an absent record key, or a regex group that did not take part). Same
contract as QuotaExceededError.
Tuple Fields§
§0: StringTrait Implementations§
Source§impl Debug for MissingValueError
impl Debug for MissingValueError
Source§impl Display for MissingValueError
impl Display for MissingValueError
Source§impl Error for MissingValueError
impl Error for MissingValueError
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()
Auto Trait Implementations§
impl Forget for MissingValueError
impl Freeze for MissingValueError
impl RefUnwindSafe for MissingValueError
impl Send for MissingValueError
impl Sync for MissingValueError
impl Unpin for MissingValueError
impl UnsafeUnpin for MissingValueError
impl UnwindSafe for MissingValueError
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