Enum ra_ap_hir_ty::CaptureKind
source · pub enum CaptureKind {
ByRef(BorrowKind),
ByValue,
}
Variants§
ByRef(BorrowKind)
ByValue
Trait Implementations§
source§impl Clone for CaptureKind
impl Clone for CaptureKind
source§fn clone(&self) -> CaptureKind
fn clone(&self) -> CaptureKind
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 CaptureKind
impl Debug for CaptureKind
source§impl Ord for CaptureKind
impl Ord for CaptureKind
source§fn cmp(&self, other: &CaptureKind) -> Ordering
fn cmp(&self, other: &CaptureKind) -> 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 PartialEq for CaptureKind
impl PartialEq for CaptureKind
source§fn eq(&self, other: &CaptureKind) -> bool
fn eq(&self, other: &CaptureKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for CaptureKind
impl PartialOrd for CaptureKind
source§fn partial_cmp(&self, other: &CaptureKind) -> Option<Ordering>
fn partial_cmp(&self, other: &CaptureKind) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for CaptureKind
impl Eq for CaptureKind
impl StructuralPartialEq for CaptureKind
Auto Trait Implementations§
impl Freeze for CaptureKind
impl RefUnwindSafe for CaptureKind
impl Send for CaptureKind
impl Sync for CaptureKind
impl Unpin for CaptureKind
impl UnwindSafe for CaptureKind
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> Cast for T
impl<T> Cast for T
source§fn cast<U>(self, interner: <U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
fn cast<U>(self, interner: <U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
Cast a value to type
U
using CastTo
.source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.