pub enum VarorConst<'tcx> {
    Place(Place<'tcx>),
    Constant(Const<'tcx>),
}Variants§
Trait Implementations§
Source§impl<'tcx> Clone for VarorConst<'tcx>
 
impl<'tcx> Clone for VarorConst<'tcx>
Source§fn clone(&self) -> VarorConst<'tcx>
 
fn clone(&self) -> VarorConst<'tcx>
Returns a duplicate 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 VarorConst<'tcx>
 
impl<'tcx> Debug for VarorConst<'tcx>
Source§impl<'tcx> Display for VarorConst<'tcx>
 
impl<'tcx> Display for VarorConst<'tcx>
Source§impl<'tcx> PartialEq for VarorConst<'tcx>
 
impl<'tcx> PartialEq for VarorConst<'tcx>
impl<'tcx> Eq for VarorConst<'tcx>
impl<'tcx> StructuralPartialEq for VarorConst<'tcx>
Auto Trait Implementations§
impl<'tcx> Freeze for VarorConst<'tcx>
impl<'tcx> !RefUnwindSafe for VarorConst<'tcx>
impl<'tcx> Send for VarorConst<'tcx>
impl<'tcx> Sync for VarorConst<'tcx>
impl<'tcx> Unpin for VarorConst<'tcx>
impl<'tcx> !UnwindSafe for VarorConst<'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<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
§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.