pub struct ResourceKey(/* private fields */);Expand description
Stable identity for a desired external resource.
Implementations§
Source§impl ResourceKey
impl ResourceKey
Sourcepub fn new(key: impl Into<Box<str>>) -> Self
pub fn new(key: impl Into<Box<str>>) -> Self
Creates a resource key from deterministic host-chosen identity.
Trait Implementations§
Source§impl Clone for ResourceKey
impl Clone for ResourceKey
Source§fn clone(&self) -> ResourceKey
fn clone(&self) -> ResourceKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResourceKey
impl Debug for ResourceKey
impl Eq for ResourceKey
Source§impl Hash for ResourceKey
impl Hash for ResourceKey
Source§impl Ord for ResourceKey
impl Ord for ResourceKey
Source§fn cmp(&self, other: &ResourceKey) -> Ordering
fn cmp(&self, other: &ResourceKey) -> Ordering
1.21.0 (const: unstable) · 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 PartialEq for ResourceKey
impl PartialEq for ResourceKey
Source§fn eq(&self, other: &ResourceKey) -> bool
fn eq(&self, other: &ResourceKey) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ResourceKey
impl PartialOrd for ResourceKey
impl StructuralPartialEq for ResourceKey
Auto Trait Implementations§
impl Freeze for ResourceKey
impl RefUnwindSafe for ResourceKey
impl Send for ResourceKey
impl Sync for ResourceKey
impl Unpin for ResourceKey
impl UnsafeUnpin for ResourceKey
impl UnwindSafe for ResourceKey
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