Trait Sum

Source
pub trait Sum {
    type Output;

    // Required method
    fn sum(&self) -> Self::Output;
}
Expand description

Type that represents the sum of elements

Required Associated Types§

Required Methods§

Source

fn sum(&self) -> Self::Output

Implementors§

Source§

impl<'data, U, T> Sum for SerializedVecView<'data, U, T>
where U: Default + Clone + Copy + Send + Sync + Add<Output = U> + 'static, for<'a> T: SliceSize + AsView<'a> + MakeView<'a, U> + Default + Clone + Send + Sync + Add<Output = T> + Add<<T as AsView<'a>>::ViewType, Output = T>, for<'a> <T as AsView<'a>>::ViewType: Send, SerializedVec<U, T>: From<Vec<T>>,

Source§

impl<U, T> Sum for SerializedVec<U, T>
where U: Default + Clone + Copy + Send + Sync + Add<Output = U> + 'static, for<'a> T: SliceSize + AsView<'a> + MakeView<'a, U> + Clone + Default + Send + Sync + Add<Output = T> + Add<<T as AsView<'a>>::ViewType, Output = T>, for<'a> <T as AsView<'a>>::ViewType: Send, SerializedVec<U, T>: From<Vec<T>>,