pub trait GetMut2D: Get2D {
// Required method
fn try_get_mut_xy<T: ToPrimitive>(
&mut self,
x: T,
y: T,
) -> Result<&mut Self::Item, IndexError>;
// Provided methods
fn get_mut_xy<T: ToPrimitive>(&mut self, x: T, y: T) -> &mut Self::Item { ... }
fn get_mut_p<T: ToPrimitive, P: IntoTuple2<T>>(
&mut self,
p: P,
) -> &mut Self::Item { ... }
fn try_get_mut_p<T: ToPrimitive, P: IntoTuple2<T>>(
&mut self,
p: P,
) -> Result<&mut Self::Item, IndexError> { ... }
}
Required Methods§
fn try_get_mut_xy<T: ToPrimitive>( &mut self, x: T, y: T, ) -> Result<&mut Self::Item, IndexError>
Provided Methods§
fn get_mut_xy<T: ToPrimitive>(&mut self, x: T, y: T) -> &mut Self::Item
fn get_mut_p<T: ToPrimitive, P: IntoTuple2<T>>( &mut self, p: P, ) -> &mut Self::Item
fn try_get_mut_p<T: ToPrimitive, P: IntoTuple2<T>>( &mut self, p: P, ) -> Result<&mut Self::Item, IndexError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.