Enum rustc_const_math::ConstIsize [] [src]

pub enum ConstIsize {
    Is32(i32),
    Is64(i64),
}
Unstable (rustc_private)
[]

Depending on the target only one variant is ever used in a compilation. Anything else is an error. This invariant is checked at several locations

Variants

Is32(i32)
Unstable (rustc_private)
Is64(i64)
Unstable (rustc_private)

Methods

impl ConstIsize
[src]

fn as_i64(self, target_int_ty: IntTy) -> i64

fn new(i: i64, target_int_ty: IntTy) -> Result<Self, ConstMathErr>

Trait Implementations

Derived Implementations

impl PartialEq for ConstIsize
[src]

fn eq(&self, __arg_0: &ConstIsize) -> bool[]

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &ConstIsize) -> bool[]

This method tests for !=.

impl Eq for ConstIsize
[src]

impl Hash for ConstIsize
[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: Hasher
1.3.0
[]

Feeds a slice of this type into the state provided.

impl Decodable for ConstIsize
[src]

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<ConstIsize, __D::Error>

impl Encodable for ConstIsize
[src]

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

impl Debug for ConstIsize
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result[]

Formats the value using the given formatter.

impl Clone for ConstIsize
[src]

fn clone(&self) -> ConstIsize[]

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

impl Copy for ConstIsize
[src]