Trait pointer::Pointer [] [src]

pub trait Pointer {
    const WidthInBytes: usize;
    const WidthInBits: usize;

    fn offsetUp(self, offset: usize) -> Self;
fn offsetDown(self, offset: usize) -> Self;
fn numberOfElements(self, higher: Self) -> isize; }

Associated Constants

WidthInBytes: usize = 4

WidthInBits: usize = 32

Required Methods

Note, at runtime, this code can fail if the difference is greater than isize::MAX In practice, this is highly unlikely

Implementors