Struct pro_primitives::KeyPtr [−][src]
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
impl RefUnwindSafe for KeyPtr
[src]
impl Send for KeyPtr
[src]
impl Sync for KeyPtr
[src]
impl Unpin for KeyPtr
[src]
impl UnwindSafe for KeyPtr
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,