[−][src]Trait splashsurf_lib::Index
Trait that has to be implemented for types to be used as background grid cell indices in the context of the library
Provided methods
fn to_real<R: Real>(self) -> Option<R>
[src]
Converts the value to the specified Real type. If the value cannot be represented by the target type, None
is returned.
fn to_real_unchecked<R: Real>(self) -> R
[src]
Converts the value to the specified Real type, panics if the value cannot be represented by the target type.
fn times(self, n: i32) -> Self
[src]
Multiplies the value by the specified i32
coefficient. Panics if the coefficient cannot be converted into the target type.
Implementors
impl<T> Index for T where
T: Copy + Hash + Integer + Bounded + CheckedAdd + CheckedSub + CheckedMul + AddAssign + SubAssign + MulAssign + FromPrimitive + ToPrimitive + Debug + Default + Display + ThreadSafe + 'static,
[src]
T: Copy + Hash + Integer + Bounded + CheckedAdd + CheckedSub + CheckedMul + AddAssign + SubAssign + MulAssign + FromPrimitive + ToPrimitive + Debug + Default + Display + ThreadSafe + 'static,