pub struct ArtifactHandle<A: ArtifactId>(/* private fields */);
Expand description
A type-safe handle to a particular Artifact, as declared using the
declare_artifacts!
macro.
Implementations§
Source§impl<A: ArtifactId> ArtifactHandle<A>
impl<A: ArtifactId> ArtifactHandle<A>
Trait Implementations§
Source§impl<A: ArtifactId> AsArtifactHandle for ArtifactHandle<A>
impl<A: ArtifactId> AsArtifactHandle for ArtifactHandle<A>
Source§fn erase(&self) -> ErasedArtifactHandle
fn erase(&self) -> ErasedArtifactHandle
Return a type-erased handle to the given artifact.
Source§impl<A: Clone + ArtifactId> Clone for ArtifactHandle<A>
impl<A: Clone + ArtifactId> Clone for ArtifactHandle<A>
Source§fn clone(&self) -> ArtifactHandle<A>
fn clone(&self) -> ArtifactHandle<A>
Returns a copy 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: ArtifactId + Debug> Debug for ArtifactHandle<A>
impl<A: ArtifactId + Debug> Debug for ArtifactHandle<A>
Source§impl<A: Hash + ArtifactId> Hash for ArtifactHandle<A>
impl<A: Hash + ArtifactId> Hash for ArtifactHandle<A>
Source§impl<A: Ord + ArtifactId> Ord for ArtifactHandle<A>
impl<A: Ord + ArtifactId> Ord for ArtifactHandle<A>
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: ArtifactId> PartialEq<ArtifactHandle<A>> for ErasedArtifactHandle
impl<A: ArtifactId> PartialEq<ArtifactHandle<A>> for ErasedArtifactHandle
Source§impl<A: ArtifactId> PartialEq<ErasedArtifactHandle> for ArtifactHandle<A>
impl<A: ArtifactId> PartialEq<ErasedArtifactHandle> for ArtifactHandle<A>
Source§impl<A: PartialEq + ArtifactId> PartialEq for ArtifactHandle<A>
impl<A: PartialEq + ArtifactId> PartialEq for ArtifactHandle<A>
Source§impl<A: PartialOrd + ArtifactId> PartialOrd for ArtifactHandle<A>
impl<A: PartialOrd + ArtifactId> PartialOrd for ArtifactHandle<A>
impl<A: Copy + ArtifactId> Copy for ArtifactHandle<A>
impl<A: Eq + ArtifactId> Eq for ArtifactHandle<A>
impl<A: ArtifactId> StructuralPartialEq for ArtifactHandle<A>
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