Struct rustc::mir::repr::Constant
[−]
[src]
pub struct Constant<'tcx> {
pub span: Span,
pub ty: Ty<'tcx>,
pub literal: Literal<'tcx>,
}Unstable (
rustc_private)Constants
Two constants are equal if they are the same constant. Note that
this does not necessarily mean that they are "==" in Rust -- in
particular one must be wary of NaN!
Fields
span: Span
Unstable (
rustc_private)ty: Ty<'tcx>
Unstable (
rustc_private)literal: Literal<'tcx>
Unstable (
rustc_private)Trait Implementations
impl<'tcx> Debug for Constant<'tcx>[src]
Derived Implementations
impl<'tcx> Decodable for Constant<'tcx>[src]
impl<'tcx> Encodable for Constant<'tcx>[src]
impl<'tcx> Hash for Constant<'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 Constant<'tcx>[src]
impl<'tcx> PartialEq for Constant<'tcx>[src]
fn eq(&self, __arg_0: &Constant<'tcx>) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Constant<'tcx>) -> bool
This method tests for !=.
impl<'tcx> Clone for Constant<'tcx>[src]
fn clone(&self) -> Constant<'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