#[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: usize
The line number (in the multi-line text string) that could not be parsed
Starting at 1.
line: String
The line that could not be parsed
error: E
The 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 copy of the value. Read more
1.0.0 · 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)>
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> UnwindSafe for MultilineListBuilderError<E>where
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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