pub trait UnsafeGet: Copy {
type Elem: Copy;
// Required method
unsafe fn unsafe_get(self, r: usize, c: usize) -> Self::Elem;
}Expand description
Unsafe indexing
Required Associated Types§
Required Methods§
Sourceunsafe fn unsafe_get(self, r: usize, c: usize) -> Self::Elem
unsafe fn unsafe_get(self, r: usize, c: usize) -> Self::Elem
Returns the element at row r and column c with performing bounds checks
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.