pub struct ArtifactHandle<A>(/* private fields */)
where
A: ArtifactId;Expand description
A type-safe handle to a particular Artifact, as declared using the
declare_artifacts! macro.
Implementations§
Source§impl<A> ArtifactHandle<A>where
A: ArtifactId,
impl<A> ArtifactHandle<A>where
A: ArtifactId,
Sourcepub const fn new() -> ArtifactHandle<A>
pub const fn new() -> ArtifactHandle<A>
Create a new typed artifact handle. It is unlikely you will need to call this directly.
Trait Implementations§
Source§impl<A> AsArtifactHandle for ArtifactHandle<A>where
A: ArtifactId,
impl<A> AsArtifactHandle for ArtifactHandle<A>where
A: ArtifactId,
Source§fn erase(&self) -> ErasedArtifactHandle
fn erase(&self) -> ErasedArtifactHandle
Return a type-erased handle to the given artifact.
Source§impl<A> Clone for ArtifactHandle<A>where
A: Clone + ArtifactId,
impl<A> Clone for ArtifactHandle<A>where
A: Clone + ArtifactId,
Source§fn clone(&self) -> ArtifactHandle<A>
fn clone(&self) -> ArtifactHandle<A>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<A> Debug for ArtifactHandle<A>where
A: ArtifactId + Debug,
impl<A> Debug for ArtifactHandle<A>where
A: ArtifactId + Debug,
Source§impl<A> Hash for ArtifactHandle<A>where
A: Hash + ArtifactId,
impl<A> Hash for ArtifactHandle<A>where
A: Hash + ArtifactId,
Source§impl<A> Ord for ArtifactHandle<A>where
A: Ord + ArtifactId,
impl<A> Ord for ArtifactHandle<A>where
A: Ord + ArtifactId,
Source§fn cmp(&self, other: &ArtifactHandle<A>) -> Ordering
fn cmp(&self, other: &ArtifactHandle<A>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<A> PartialEq<ArtifactHandle<A>> for ErasedArtifactHandlewhere
A: ArtifactId,
impl<A> PartialEq<ArtifactHandle<A>> for ErasedArtifactHandlewhere
A: ArtifactId,
Source§impl<A> PartialEq<ErasedArtifactHandle> for ArtifactHandle<A>where
A: ArtifactId,
impl<A> PartialEq<ErasedArtifactHandle> for ArtifactHandle<A>where
A: ArtifactId,
Source§impl<A> PartialEq for ArtifactHandle<A>where
A: PartialEq + ArtifactId,
impl<A> PartialEq for ArtifactHandle<A>where
A: PartialEq + ArtifactId,
Source§impl<A> PartialOrd for ArtifactHandle<A>where
A: PartialOrd + ArtifactId,
impl<A> PartialOrd for ArtifactHandle<A>where
A: PartialOrd + ArtifactId,
impl<A> Copy for ArtifactHandle<A>where
A: Copy + ArtifactId,
impl<A> Eq for ArtifactHandle<A>where
A: Eq + ArtifactId,
impl<A> StructuralPartialEq for ArtifactHandle<A>where
A: ArtifactId,
Auto Trait Implementations§
impl<A> Freeze for ArtifactHandle<A>
impl<A> RefUnwindSafe for ArtifactHandle<A>where
A: RefUnwindSafe,
impl<A> Send for ArtifactHandle<A>where
A: Send,
impl<A> Sync for ArtifactHandle<A>where
A: Sync,
impl<A> Unpin for ArtifactHandle<A>where
A: Unpin,
impl<A> UnwindSafe for ArtifactHandle<A>where
A: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.