#[non_exhaustive]pub struct MultilineListBuilderError<E: Error + Clone + Send + Sync> {
item_number: usize,
line: String,
error: E,
}Expand description
Error from trying to parse a MultilineListBuilder as a list of particular items
Usually, this error is generated during deserialization.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.item_number: usizeThe line number (in the multi-line text string) that could not be parsed
Starting at 1.
line: StringThe line that could not be parsed
error: EThe parse error from FromStr
This is not a source because we want to include it in the Display
implementation so that serde errors are useful.
Trait Implementations§
Source§impl<E: Clone + Error + Clone + Send + Sync> Clone for MultilineListBuilderError<E>
impl<E: Clone + Error + Clone + Send + Sync> Clone for MultilineListBuilderError<E>
Source§fn clone(&self) -> MultilineListBuilderError<E>
fn clone(&self) -> MultilineListBuilderError<E>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<E> Display for MultilineListBuilderError<E>
impl<E> Display for MultilineListBuilderError<E>
Source§impl<E: Error + Clone + Send + Sync> Error for MultilineListBuilderError<E>
impl<E: Error + Clone + Send + Sync> Error for MultilineListBuilderError<E>
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()
Auto Trait Implementations§
impl<E> Freeze for MultilineListBuilderError<E>where
E: Freeze,
impl<E> RefUnwindSafe for MultilineListBuilderError<E>where
E: RefUnwindSafe,
impl<E> Send for MultilineListBuilderError<E>
impl<E> Sync for MultilineListBuilderError<E>
impl<E> Unpin for MultilineListBuilderError<E>where
E: Unpin,
impl<E> UnsafeUnpin for MultilineListBuilderError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for MultilineListBuilderError<E>where
E: UnwindSafe,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<E> ErrorReport for Ewhere
E: Error + 'static,
impl<E> ErrorReport for Ewhere
E: Error + 'static,
Source§fn report(&self) -> Report<ReportHelper<'_>>
fn report(&self) -> Report<ReportHelper<'_>>
Return an object that displays the error and its causes
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more