pub struct BatchResult { /* private fields */ }Expand description
Batch validation result with bit-packed valid flags.
Implementations§
Source§impl BatchResult
impl BatchResult
Sourcepub fn with_capacity(count: usize) -> Self
pub fn with_capacity(count: usize) -> Self
Create a new batch result with given capacity.
Sourcepub fn valid_count(&self) -> usize
pub fn valid_count(&self) -> usize
Get the number of valid items.
Sourcepub fn invalid_count(&self) -> usize
pub fn invalid_count(&self) -> usize
Get the number of invalid items.
Sourcepub fn invalid_indices(&self) -> impl Iterator<Item = usize> + '_
pub fn invalid_indices(&self) -> impl Iterator<Item = usize> + '_
Iterate over indices of invalid items.
Sourcepub fn valid_indices(&self) -> impl Iterator<Item = usize> + '_
pub fn valid_indices(&self) -> impl Iterator<Item = usize> + '_
Iterate over indices of valid items.
Trait Implementations§
Source§impl Clone for BatchResult
impl Clone for BatchResult
Source§fn clone(&self) -> BatchResult
fn clone(&self) -> BatchResult
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 moreAuto Trait Implementations§
impl Freeze for BatchResult
impl RefUnwindSafe for BatchResult
impl Send for BatchResult
impl Sync for BatchResult
impl Unpin for BatchResult
impl UnsafeUnpin for BatchResult
impl UnwindSafe for BatchResult
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