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
Required Methods
fn offsetUp(self, offset: usize) -> Self
fn offsetDown(self, offset: usize) -> Self
fn numberOfElements(self, higher: Self) -> isize
Note, at runtime, this code can fail if the difference is greater than isize::MAX In practice, this is highly unlikely