[][src]Trait rate_common::memory::Offset

pub trait Offset {
    fn as_offset(&self) -> usize;
}

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

Required methods

fn as_offset(&self) -> usize

Loading content...

Implementations on Foreign Types

impl Offset for usize[src]

impl Offset for u64[src]

impl Offset for i32[src]

Loading content...

Implementors

impl Offset for Clause[src]

impl Offset for Literal[src]

Enable as array index.

impl Offset for Variable[src]

Enable as array index.

fn as_offset(&self) -> usize[src]

We simply use the variable index, so offset 0 will be generally unused.

Loading content...