Struct twilight_cache_inmemory::GuildResource
source · pub struct GuildResource<T> { /* private fields */ }
Expand description
Resource associated with a guild.
This is used when a resource does not itself include its associated guild’s ID. In lieu of the resource itself storing its guild’s ID this relation includes it.
Implementations§
source§impl<T> GuildResource<T>
impl<T> GuildResource<T>
Trait Implementations§
source§impl<T: Clone> Clone for GuildResource<T>
impl<T: Clone> Clone for GuildResource<T>
source§fn clone(&self) -> GuildResource<T>
fn clone(&self) -> GuildResource<T>
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<T: Debug> Debug for GuildResource<T>
impl<T: Debug> Debug for GuildResource<T>
source§impl<T> Deref for GuildResource<T>
impl<T> Deref for GuildResource<T>
source§impl<T: PartialEq> PartialEq<GuildResource<T>> for GuildResource<T>
impl<T: PartialEq> PartialEq<GuildResource<T>> for GuildResource<T>
source§fn eq(&self, other: &GuildResource<T>) -> bool
fn eq(&self, other: &GuildResource<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<T: Eq> Eq for GuildResource<T>
impl<T> StructuralEq for GuildResource<T>
impl<T> StructuralPartialEq for GuildResource<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for GuildResource<T>where T: RefUnwindSafe,
impl<T> Send for GuildResource<T>where T: Send,
impl<T> Sync for GuildResource<T>where T: Sync,
impl<T> Unpin for GuildResource<T>where T: Unpin,
impl<T> UnwindSafe for GuildResource<T>where T: 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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more