ColIdx

Trait ColIdx 

Source
pub trait ColIdx: Debug + Copy {
    // Required methods
    fn as_str(&self) -> Option<&str>;
    fn as_usize(&self) -> Option<&usize>;
}
Expand description

Column Index, used by TryGetable. Implemented for &str and usize

Required Methods§

Source

fn as_str(&self) -> Option<&str>

Self must be &str, return None otherwise

Source

fn as_usize(&self) -> Option<&usize>

Self must be usize, return None otherwise

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.

Implementations on Foreign Types§

Source§

impl ColIdx for &str

Source§

fn as_str(&self) -> Option<&str>

Source§

fn as_usize(&self) -> Option<&usize>

Source§

impl ColIdx for usize

Source§

fn as_str(&self) -> Option<&str>

Source§

fn as_usize(&self) -> Option<&usize>

Implementors§