Struct hir_ty::db::InternedClosure
source · pub struct InternedClosure(pub DefWithBodyId, pub ExprId);
Tuple Fields§
§0: DefWithBodyId
§1: ExprId
Trait Implementations§
source§impl Clone for InternedClosure
impl Clone for InternedClosure
source§fn clone(&self) -> InternedClosure
fn clone(&self) -> InternedClosure
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 Debug for InternedClosure
impl Debug for InternedClosure
source§impl Hash for InternedClosure
impl Hash for InternedClosure
source§impl InternValue for InternedClosure
impl InternValue for InternedClosure
§type Key = InternedClosure
type Key = InternedClosure
They key used to intern this value by.
source§impl PartialEq for InternedClosure
impl PartialEq for InternedClosure
source§fn eq(&self, other: &InternedClosure) -> bool
fn eq(&self, other: &InternedClosure) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for InternedClosure
impl Eq for InternedClosure
impl StructuralPartialEq for InternedClosure
Auto Trait Implementations§
impl Freeze for InternedClosure
impl RefUnwindSafe for InternedClosure
impl Send for InternedClosure
impl Sync for InternedClosure
impl Unpin for InternedClosure
impl UnwindSafe for InternedClosure
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 Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§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.