[][src]Struct checkers::Pointer

pub struct Pointer(_);

A type-erased pointer. The inner representation is specifically not a raw pointer to avoid aliasing the pointers handled by the allocator.


impl Pointer[src]

pub const fn new() -> Self[src]

Construct a new default poitner.

pub fn saturating_add(self, n: usize) -> Self[src]

Add the given offset to the current pointer.

pub fn is_aligned_with(self, n: usize) -> bool[src]

Test if pointer is aligned with the given argument.

Trait Implementations

impl Clone for Pointer[src]

impl Copy for Pointer[src]

impl Debug for Pointer[src]

impl Default for Pointer[src]

impl Display for Pointer[src]

impl Eq for Pointer[src]

impl From<*mut u8> for Pointer[src]

impl From<usize> for Pointer[src]

impl Hash for Pointer[src]

impl Ord for Pointer[src]

impl PartialEq<Pointer> for Pointer[src]

impl PartialOrd<Pointer> for Pointer[src]

impl StructuralEq for Pointer[src]

impl StructuralPartialEq for Pointer[src]

Auto Trait Implementations

impl RefUnwindSafe for Pointer

impl Send for Pointer

impl Sync for Pointer

impl Unpin for Pointer

impl UnwindSafe for Pointer

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.