Enum rupta::mir::function::GenericArgE
source · pub enum GenericArgE<'tcx> {
Region,
Const(Const<'tcx>),
Type(Ty<'tcx>),
}Expand description
Resembles the GenericArgKind type in rustc.
Variants§
Trait Implementations§
source§impl<'tcx> Clone for GenericArgE<'tcx>
impl<'tcx> Clone for GenericArgE<'tcx>
source§fn clone(&self) -> GenericArgE<'tcx>
fn clone(&self) -> GenericArgE<'tcx>
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<'tcx> Debug for GenericArgE<'tcx>
impl<'tcx> Debug for GenericArgE<'tcx>
source§impl<'tcx> From<&GenericArg<'tcx>> for GenericArgE<'tcx>
impl<'tcx> From<&GenericArg<'tcx>> for GenericArgE<'tcx>
source§fn from(ga: &GenericArg<'tcx>) -> GenericArgE<'tcx>
fn from(ga: &GenericArg<'tcx>) -> GenericArgE<'tcx>
Converts to this type from the input type.
source§impl<'tcx> Hash for GenericArgE<'tcx>
impl<'tcx> Hash for GenericArgE<'tcx>
source§impl<'tcx> Ord for GenericArgE<'tcx>
impl<'tcx> Ord for GenericArgE<'tcx>
source§fn cmp(&self, other: &GenericArgE<'tcx>) -> Ordering
fn cmp(&self, other: &GenericArgE<'tcx>) -> 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<'tcx> PartialEq for GenericArgE<'tcx>
impl<'tcx> PartialEq for GenericArgE<'tcx>
source§fn eq(&self, other: &GenericArgE<'tcx>) -> bool
fn eq(&self, other: &GenericArgE<'tcx>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<'tcx> PartialOrd for GenericArgE<'tcx>
impl<'tcx> PartialOrd for GenericArgE<'tcx>
source§fn partial_cmp(&self, other: &GenericArgE<'tcx>) -> Option<Ordering>
fn partial_cmp(&self, other: &GenericArgE<'tcx>) -> 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<'tcx> Eq for GenericArgE<'tcx>
impl<'tcx> StructuralPartialEq for GenericArgE<'tcx>
Auto Trait Implementations§
impl<'tcx> !RefUnwindSafe for GenericArgE<'tcx>
impl<'tcx> Send for GenericArgE<'tcx>
impl<'tcx> Sync for GenericArgE<'tcx>
impl<'tcx> Unpin for GenericArgE<'tcx>
impl<'tcx> !UnwindSafe for GenericArgE<'tcx>
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<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.