Enum lamellar::TypedAmGroupResult
source · pub enum TypedAmGroupResult<T> {
Unit(TypedAmGroupUnitResult<T>),
Val(TypedAmGroupValResult<T>),
}
Expand description
Hold the results from a Typed AM group request
Variants§
Unit(TypedAmGroupUnitResult<T>)
the Ams within the group return unit values
Val(TypedAmGroupValResult<T>)
the Ams within the group return values of type T
Implementations§
source§impl<T> TypedAmGroupResult<T>
impl<T> TypedAmGroupResult<T>
sourcepub fn unit(
reqs: Vec<TypedAmGroupBatchResult<T>>,
cnt: usize,
num_pes: usize
) -> Self
pub fn unit( reqs: Vec<TypedAmGroupBatchResult<T>>, cnt: usize, num_pes: usize ) -> Self
creates a new Unit result
sourcepub fn val(
reqs: Vec<TypedAmGroupBatchResult<T>>,
cnt: usize,
num_pes: usize
) -> Self
pub fn val( reqs: Vec<TypedAmGroupBatchResult<T>>, cnt: usize, num_pes: usize ) -> Self
creates a new Val result
sourcepub fn at(&self, i: usize) -> AmGroupResult<'_, T>
pub fn at(&self, i: usize) -> AmGroupResult<'_, T>
returns the result at index i
Trait Implementations§
source§impl<T: Clone> Clone for TypedAmGroupResult<T>
impl<T: Clone> Clone for TypedAmGroupResult<T>
source§fn clone(&self) -> TypedAmGroupResult<T>
fn clone(&self) -> TypedAmGroupResult<T>
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 moreAuto Trait Implementations§
impl<T> RefUnwindSafe for TypedAmGroupResult<T>where
T: RefUnwindSafe,
impl<T> Send for TypedAmGroupResult<T>where
T: Send,
impl<T> Sync for TypedAmGroupResult<T>where
T: Sync,
impl<T> Unpin for TypedAmGroupResult<T>where
T: Unpin,
impl<T> UnwindSafe for TypedAmGroupResult<T>where
T: 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