pub trait SliceExt<T> {
// Required methods
fn get_or_cbkp_error(
&self,
index: usize,
code: ErrorCode,
message: impl Into<String>,
) -> Result<&T>;
fn get_mut_or_cbkp_error(
&mut self,
index: usize,
code: ErrorCode,
message: impl Into<String>,
) -> Result<&mut T>;
}Expand description
Extension trait for slice indexing providing panic-safe access
Required Methods§
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.