Struct pro_primitives::KeyPtr[][src]

pub struct KeyPtr { /* fields omitted */ }

A key pointer.

This wraps a base key and provides an interface to mimic pointer arithmetics. Mainly used to coordinate keys through static storage structures.

Implementations

impl KeyPtr[src]

pub fn advance_by(&mut self, new_shift: u64) -> &Key[src]

Advances the key pointer by the given amount and returns the old value.

pub fn key(&self) -> &Key[src]

Returns the underlying offset key.

Trait Implementations

impl Clone for KeyPtr[src]

impl Copy for KeyPtr[src]

impl Debug for KeyPtr[src]

impl Eq for KeyPtr[src]

impl From<Key> for KeyPtr[src]

impl PartialEq<KeyPtr> for KeyPtr[src]

impl StructuralEq for KeyPtr[src]

impl StructuralPartialEq for KeyPtr[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.