Trait Offset

Source
pub trait Offset {
    // Required method
    fn as_offset(&self) -> usize;
}
Expand description

Trait for types that can be used as an array index.

Required Methods§

Source

fn as_offset(&self) -> usize

Implementations on Foreign Types§

Source§

impl Offset for i32

Source§

impl Offset for u64

Source§

impl Offset for usize

Implementors§

Source§

impl Offset for Clause

Source§

impl Offset for Literal

Enable as array index.

Source§

impl Offset for Variable

Enable as array index.