pub struct ToTomlError {
pub message: Cow<'static, str>,
}Available on crate feature
to-toml only.Expand description
An error produced during ToToml conversion or TOML emission.
Returned by to_string,
Formatting::format, and
ToToml::to_toml.
Fields§
§message: Cow<'static, str>The error message.
Implementations§
Trait Implementations§
Source§impl Debug for ToTomlError
impl Debug for ToTomlError
Source§impl Display for ToTomlError
impl Display for ToTomlError
Source§impl Error for ToTomlError
impl Error for ToTomlError
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<&'static str> for ToTomlError
impl From<&'static str> for ToTomlError
Auto Trait Implementations§
impl Freeze for ToTomlError
impl RefUnwindSafe for ToTomlError
impl Send for ToTomlError
impl Sync for ToTomlError
impl Unpin for ToTomlError
impl UnsafeUnpin for ToTomlError
impl UnwindSafe for ToTomlError
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