pub enum JsStringError {
TooLong,
OutOfMemory,
}Expand description
Why a string-kernel operation failed. It becomes a QuickJS InternalError
(ErrorKind::JsInternal) in the front end’s errors, and a
RuntimeError in the embedding
API.
Variants§
Trait Implementations§
Source§impl Clone for JsStringError
impl Clone for JsStringError
impl Copy for JsStringError
Source§impl Debug for JsStringError
impl Debug for JsStringError
Source§impl Display for JsStringError
impl Display for JsStringError
impl Eq for JsStringError
Source§impl Error for JsStringError
impl Error for JsStringError
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()
Source§impl From<JsStringError> for RuntimeError
impl From<JsStringError> for RuntimeError
Source§fn from(error: JsStringError) -> Self
fn from(error: JsStringError) -> Self
Converts to this type from the input type.
Source§impl From<JsStringError> for Error
impl From<JsStringError> for Error
Source§fn from(error: JsStringError) -> Self
fn from(error: JsStringError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for JsStringError
impl PartialEq for JsStringError
impl StructuralPartialEq for JsStringError
Auto Trait Implementations§
impl Freeze for JsStringError
impl RefUnwindSafe for JsStringError
impl Send for JsStringError
impl Sync for JsStringError
impl Unpin for JsStringError
impl UnsafeUnpin for JsStringError
impl UnwindSafe for JsStringError
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