pub enum SliceExpansionError<E> {
Syntax(Error),
Expansion(Error<E>),
}Expand description
Error of expand_slice.
Variants§
Syntax(Error)
The bytes are not one well-formed JSON text (RFC 8259).
Expansion(Error<E>)
The JSON text is not a document the Expansion algorithm accepts.
Trait Implementations§
Source§impl<E: Debug> Debug for SliceExpansionError<E>
impl<E: Debug> Debug for SliceExpansionError<E>
Source§impl<E> Display for SliceExpansionError<E>
impl<E> Display for SliceExpansionError<E>
Source§impl<E> Error for SliceExpansionError<E>
impl<E> Error for SliceExpansionError<E>
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<E> Freeze for SliceExpansionError<E>
impl<E> RefUnwindSafe for SliceExpansionError<E>where
Error<E>: RefUnwindSafe,
impl<E> Send for SliceExpansionError<E>
impl<E> Sync for SliceExpansionError<E>
impl<E> Unpin for SliceExpansionError<E>
impl<E> UnsafeUnpin for SliceExpansionError<E>where
Error<E>: UnsafeUnpin,
impl<E> UnwindSafe for SliceExpansionError<E>where
Error<E>: UnwindSafe,
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