pub struct SpaceMap<T> { /* private fields */ }
Implementations§
source§impl<T> SpaceMap<T>
impl<T> SpaceMap<T>
pub const fn new(native: T, evm: T) -> Self
pub const fn in_space(&self, space: Space) -> &T
pub fn in_space_mut(&mut self, space: Space) -> &mut T
pub fn zip3<B, C>( a: SpaceMap<T>, b: SpaceMap<B>, c: SpaceMap<C> ) -> SpaceMap<(T, B, C)>
pub fn zip4<B, C, D>( a: SpaceMap<T>, b: SpaceMap<B>, c: SpaceMap<C>, d: SpaceMap<D> ) -> SpaceMap<(T, B, C, D)>
pub fn map_sum<F: FnMut(&T) -> U, U: Add<U, Output = U>>(&self, f: F) -> U
pub const fn size(&self) -> usize
pub fn map_all<U, F: Fn(T) -> U>(self, f: F) -> SpaceMap<U>
pub fn apply_all<U, F: FnMut(&mut T) -> U>(&mut self, f: F) -> SpaceMap<U>
Trait Implementations§
source§impl<T: PartialEq> PartialEq for SpaceMap<T>
impl<T: PartialEq> PartialEq for SpaceMap<T>
impl<T: Copy> Copy for SpaceMap<T>
impl<T: Eq> Eq for SpaceMap<T>
impl<T> StructuralPartialEq for SpaceMap<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for SpaceMap<T>where
T: RefUnwindSafe,
impl<T> Send for SpaceMap<T>where
T: Send,
impl<T> Sync for SpaceMap<T>where
T: Sync,
impl<T> Unpin for SpaceMap<T>where
T: Unpin,
impl<T> UnwindSafe for SpaceMap<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