pub(crate) struct ElementFailures {
batch: BatchedErrors,
elements: Vec<FailedElement>,
class: Option<Vec<String>>,
}Expand description
The failures of a container’s elements, folded into one
IntoRError::Elements.
Each failure’s message goes into a BatchedErrors, so the message is
the one every batched conversion writes (it lists the first
BATCHED_ERROR_CAP). Every failure
keeps its condition parts for e$errors and takes part in the shared
class.
Fields§
§batch: BatchedErrors§elements: Vec<FailedElement>§class: Option<Vec<String>>The class every failure so far has; None before the first, empty
once two differ.
Implementations§
Source§impl ElementFailures
impl ElementFailures
Sourcepub(crate) fn push<E: RConditionData + ?Sized>(
&mut self,
index: usize,
error: &E,
)
pub(crate) fn push<E: RConditionData + ?Sized>( &mut self, index: usize, error: &E, )
Record the failure of the element at 0-based index.
Sourcepub(crate) fn push_row(&mut self, row: usize, error: IntoRError)
pub(crate) fn push_row(&mut self, row: usize, error: IntoRError)
Record the failure of the row at 0-based row, itself a container
(a tuple): its failed elements are listed with the row in front of
their positions, its message is the row’s reason.
Fold one failure’s classes into the shared class.
Sourcepub(crate) fn into_error(self) -> IntoRError
pub(crate) fn into_error(self) -> IntoRError
The one error for every failure recorded.
Trait Implementations§
Auto Trait Implementations§
impl Forget for ElementFailures
impl Freeze for ElementFailures
impl RefUnwindSafe for ElementFailures
impl Send for ElementFailures
impl Sync for ElementFailures
impl Unpin for ElementFailures
impl UnsafeUnpin for ElementFailures
impl UnwindSafe for ElementFailures
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
Source§impl<T> SizeHint for Twhere
T: ?Sized,
impl<T> SizeHint for Twhere
T: ?Sized,
Source§default fn lower_bound(&self) -> usize
default fn lower_bound(&self) -> usize
core_io_internals)[u8; 12] could return any value between 0 and
12 inclusively as a correct implementation. Read moreSource§impl<T> SizedTypeProperties for T
impl<T> SizedTypeProperties for T
Source§#[doc(hidden)]const SIZE: usize
#[doc(hidden)]const SIZE: usize
sized_type_properties)Source§#[doc(hidden)]const ALIGN: usize
#[doc(hidden)]const ALIGN: usize
sized_type_properties)Source§#[doc(hidden)]const ALIGNMENT: Alignment
#[doc(hidden)]const ALIGNMENT: Alignment
ptr_alignment_type)Source§#[doc(hidden)]const IS_ZST: bool
#[doc(hidden)]const IS_ZST: bool
sized_type_properties)Source§#[doc(hidden)]const LAYOUT: Layout
#[doc(hidden)]const LAYOUT: Layout
sized_type_properties)Source§#[doc(hidden)]const MAX_SLICE_LEN: usize
#[doc(hidden)]const MAX_SLICE_LEN: usize
sized_type_properties)[Self]. Read moreLayout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 80 bytes