pub struct UnevenError {
pub total: usize,
pub worker_count: u16,
}Expand description
Error returned by range_even when total is not evenly divisible
by worker_count.
Kept deliberately small and Copy so it can be propagated through
no_std guest code without any allocation.
Fields§
§total: usize§worker_count: u16Trait Implementations§
Source§impl Clone for UnevenError
impl Clone for UnevenError
Source§fn clone(&self) -> UnevenError
fn clone(&self) -> UnevenError
Returns a duplicate 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 Debug for UnevenError
impl Debug for UnevenError
Source§impl Display for UnevenError
impl Display for UnevenError
Source§impl PartialEq for UnevenError
impl PartialEq for UnevenError
impl Copy for UnevenError
impl Eq for UnevenError
impl StructuralPartialEq for UnevenError
Auto Trait Implementations§
impl Freeze for UnevenError
impl RefUnwindSafe for UnevenError
impl Send for UnevenError
impl Sync for UnevenError
impl Unpin for UnevenError
impl UnwindSafe for UnevenError
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