Trait ColIndex
pub trait ColIndex<RowRange>: Sized + Seal {
type Target;
// Required method
fn get(this: Self, row: RowRange) -> Self::Target;
// Provided method
unsafe fn get_unchecked(this: Self, row: RowRange) -> Self::Target { ... }
}
Expand description
Represents a type that can be used to slice a column, such as an index or a range of indices.
Required Associated Types§
type Target
type Target
Resulting type of the indexing operation.
Required Methods§
Provided Methods§
unsafe fn get_unchecked(this: Self, row: RowRange) -> Self::Target
unsafe fn get_unchecked(this: Self, row: RowRange) -> Self::Target
Index the column at row
, without bound 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.