pub enum WriteError {
OnCreateErr(&'static str),
OnWrite {
code: WriteCode,
msg: &'static str,
},
}
Variants§
Implementations§
Source§impl WriteError
impl WriteError
pub fn is_mem_allocation_err(&self) -> bool
Trait Implementations§
Source§impl Debug for WriteError
impl Debug for WriteError
Source§impl Display for WriteError
impl Display for WriteError
Source§impl Error for WriteError
impl Error for WriteError
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<&yyjson_write_err> for WriteError
impl From<&yyjson_write_err> for WriteError
Source§fn from(v: &yyjson_write_err) -> Self
fn from(v: &yyjson_write_err) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WriteError
impl RefUnwindSafe for WriteError
impl Send for WriteError
impl Sync for WriteError
impl Unpin for WriteError
impl UnwindSafe for WriteError
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