[−][src]Struct building_blocks::prelude::Stride
The most efficient coordinates for slice-backed lattice maps. A single number that translates directly to a slice offset.
Trait Implementations
impl Add<Stride> for Stride
[src]
type Output = Stride
The resulting type after applying the +
operator.
pub fn add(self, rhs: Stride) -> <Stride as Add<Stride>>::Output
[src]
impl AddAssign<Stride> for Stride
[src]
pub fn add_assign(&mut self, rhs: Stride)
[src]
impl Clone for Stride
[src]
impl Copy for Stride
[src]
impl Debug for Stride
[src]
impl Eq for Stride
[src]
impl<N, T> ForEach<N, Stride> for ArrayN<N, T> where
ArrayN<N, T>: Sized,
ArrayN<N, T>: Array<N>,
ArrayN<N, T>: Get<Stride>,
ArrayN<N, T>: GetUnchecked<Stride>,
<ArrayN<N, T> as Get<Stride>>::Data == T,
<ArrayN<N, T> as GetUnchecked<Stride>>::Data == T,
[src]
ArrayN<N, T>: Sized,
ArrayN<N, T>: Array<N>,
ArrayN<N, T>: Get<Stride>,
ArrayN<N, T>: GetUnchecked<Stride>,
<ArrayN<N, T> as Get<Stride>>::Data == T,
<ArrayN<N, T> as GetUnchecked<Stride>>::Data == T,
impl<N, T> ForEachMut<N, Stride> for ArrayN<N, T> where
ArrayN<N, T>: Sized,
ArrayN<N, T>: Array<N>,
ArrayN<N, T>: GetMut<Stride>,
ArrayN<N, T>: GetUncheckedMut<Stride>,
ExtentN<N>: Copy,
<ArrayN<N, T> as GetMut<Stride>>::Data == T,
<ArrayN<N, T> as GetUncheckedMut<Stride>>::Data == T,
[src]
ArrayN<N, T>: Sized,
ArrayN<N, T>: Array<N>,
ArrayN<N, T>: GetMut<Stride>,
ArrayN<N, T>: GetUncheckedMut<Stride>,
ExtentN<N>: Copy,
<ArrayN<N, T> as GetMut<Stride>>::Data == T,
<ArrayN<N, T> as GetUncheckedMut<Stride>>::Data == T,
type Data = T
pub fn for_each_mut(
&mut self,
extent: &ExtentN<N>,
f: impl FnMut(Stride, &mut T)
)
[src]
&mut self,
extent: &ExtentN<N>,
f: impl FnMut(Stride, &mut T)
)
impl<N, T> Get<Stride> for ArrayN<N, T> where
T: Clone,
[src]
T: Clone,
impl<N, T> GetMut<Stride> for ArrayN<N, T>
[src]
type Data = T
pub fn get_mut(
&mut self,
stride: Stride
) -> &mut <ArrayN<N, T> as GetMut<Stride>>::Data
[src]
&mut self,
stride: Stride
) -> &mut <ArrayN<N, T> as GetMut<Stride>>::Data
impl<N, T> GetUnchecked<Stride> for ArrayN<N, T> where
T: Clone,
[src]
T: Clone,
type Data = T
pub unsafe fn get_unchecked(
&self,
stride: Stride
) -> <ArrayN<N, T> as GetUnchecked<Stride>>::Data
[src]
&self,
stride: Stride
) -> <ArrayN<N, T> as GetUnchecked<Stride>>::Data
impl<N, T> GetUncheckedMut<Stride> for ArrayN<N, T>
[src]
type Data = T
pub unsafe fn get_unchecked_mut(
&mut self,
stride: Stride
) -> &mut <ArrayN<N, T> as GetUncheckedMut<Stride>>::Data
[src]
&mut self,
stride: Stride
) -> &mut <ArrayN<N, T> as GetUncheckedMut<Stride>>::Data
impl Hash for Stride
[src]
pub fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Mul<usize> for Stride
[src]
type Output = Stride
The resulting type after applying the *
operator.
pub fn mul(self, rhs: usize) -> <Stride as Mul<usize>>::Output
[src]
impl PartialEq<Stride> for Stride
[src]
impl StructuralEq for Stride
[src]
impl StructuralPartialEq for Stride
[src]
impl Sub<Stride> for Stride
[src]
type Output = Stride
The resulting type after applying the -
operator.
pub fn sub(self, rhs: Stride) -> <Stride as Sub<Stride>>::Output
[src]
impl SubAssign<Stride> for Stride
[src]
pub fn sub_assign(&mut self, rhs: Stride)
[src]
impl Zero for Stride
[src]
Auto Trait Implementations
impl RefUnwindSafe for Stride
impl Send for Stride
impl Sync for Stride
impl Unpin for Stride
impl UnwindSafe for Stride
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, Right> ClosedAdd<Right> for T where
T: Add<Right, Output = T> + AddAssign<Right>,
T: Add<Right, Output = T> + AddAssign<Right>,
impl<T, Right> ClosedSub<Right> for T where
T: Sub<Right, Output = T> + SubAssign<Right>,
T: Sub<Right, Output = T> + SubAssign<Right>,
impl<T> CollisionObjectHandle for T where
T: 'static + PartialEq<T> + Eq + Send + Copy + Sync + Hash,
[src]
T: 'static + PartialEq<T> + Eq + Send + Copy + Sync + Hash,
impl<T> Downcast for T where
T: Any,
T: Any,
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn as_any(&self) -> &(dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> DowncastSync for T where
T: Send + Sync + Any,
T: Send + Sync + Any,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Scalar for T where
T: PartialEq<T> + Copy + Any + Debug,
[src]
T: PartialEq<T> + Copy + Any + Debug,
impl<T> Slottable for T where
T: Copy,
[src]
T: Copy,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub fn to_subset_unchecked(&self) -> SS
pub fn from_subset(element: &SS) -> SP
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,