[−][src]Struct provenance::Key
A lightweight key referencing a value stored in a ProvenanceMap or SeparateProvenanceMap.
Can only be created by methods on such map and thus will always be valid for the map that created it. Further, the map that creates the key "tags" it with it's provenance. And since there only may be one map with any given provenance, it is guaranteed that if a key match the required type signature for retrieving a value from a map, then that key were created by that map and reference a value in that map.
Trait Implementations
impl<Provenance> Clone for Key<Provenance>
[src]
pub fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<Provenance> Copy for Key<Provenance>
[src]
impl<Provenance> Debug for Key<Provenance>
[src]
impl<Provenance> Eq for Key<Provenance>
[src]
impl<Provenance> Hash for Key<Provenance>
[src]
pub fn hash<H: Hasher>(&self, state: &mut H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<Provenance> PartialEq<Key<Provenance>> for Key<Provenance>
[src]
Auto Trait Implementations
impl<Provenance> RefUnwindSafe for Key<Provenance> where
Provenance: RefUnwindSafe,
[src]
Provenance: RefUnwindSafe,
impl<Provenance> !Send for Key<Provenance>
[src]
impl<Provenance> !Sync for Key<Provenance>
[src]
impl<Provenance> Unpin for Key<Provenance>
[src]
impl<Provenance> UnwindSafe for Key<Provenance> where
Provenance: RefUnwindSafe,
[src]
Provenance: RefUnwindSafe,
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>,