Enum rustc::mir::repr::Literal
[−]
[src]
pub enum Literal<'tcx> {
Item {
def_id: DefId,
substs: &'tcx Substs<'tcx>,
},
Value {
value: ConstVal,
},
Promoted {
index: usize,
},
}Unstable (
rustc_private)Variants
ItemUnstable (
rustc_private)Fields
def_id: DefId | Unstable ( rustc_private) |
substs: &'tcx Substs<'tcx> | Unstable ( rustc_private) |
ValueUnstable (
rustc_private)Fields
value: ConstVal | Unstable ( rustc_private) |
PromotedUnstable (
rustc_private)Fields
index: usize | Unstable ( rustc_private) |
Trait Implementations
impl<'tcx> Debug for Literal<'tcx>[src]
Derived Implementations
impl<'tcx> Decodable for Literal<'tcx>[src]
impl<'tcx> Encodable for Literal<'tcx>[src]
impl<'tcx> Hash for Literal<'tcx>[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher1.3.0
Feeds a slice of this type into the state provided.
impl<'tcx> Eq for Literal<'tcx>[src]
impl<'tcx> PartialEq for Literal<'tcx>[src]
fn eq(&self, __arg_0: &Literal<'tcx>) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Literal<'tcx>) -> bool
This method tests for !=.
impl<'tcx> Clone for Literal<'tcx>[src]
fn clone(&self) -> Literal<'tcx>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more