pub struct NotALiteral;Expand description
Error raised when value expansion is asked to expand something that is not a JSON scalar, such as an array or an object.
Trait Implementations§
Source§impl Debug for NotALiteral
impl Debug for NotALiteral
Source§impl Display for NotALiteral
impl Display for NotALiteral
Source§impl Error for NotALiteral
impl Error for NotALiteral
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<E> From<NotALiteral> for Error<E>
impl<E> From<NotALiteral> for Error<E>
Source§fn from(e: NotALiteral) -> Self
fn from(e: NotALiteral) -> Self
Converts to this type from the input type.
Source§impl From<NotALiteral> for LiteralExpansionError
impl From<NotALiteral> for LiteralExpansionError
Source§fn from(source: NotALiteral) -> Self
fn from(source: NotALiteral) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NotALiteral
impl RefUnwindSafe for NotALiteral
impl Send for NotALiteral
impl Sync for NotALiteral
impl Unpin for NotALiteral
impl UnsafeUnpin for NotALiteral
impl UnwindSafe for NotALiteral
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
Source§impl<T> BorrowUnordered for T
impl<T> BorrowUnordered for T
Source§fn as_unordered(&self) -> &Unordered<T>
fn as_unordered(&self) -> &Unordered<T>
Views this value as an
Unordered reference.Source§impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more