Enum rustc_const_math::ConstUsize [] [src]

pub enum ConstUsize {
    Us32(u32),
    Us64(u64),
}
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

Us32(u32)
Unstable (rustc_private)
Us64(u64)
Unstable (rustc_private)

Methods

impl ConstUsize
[src]

fn as_u64(self, target_uint_ty: UintTy) -> u64

fn new(i: u64, target_uint_ty: UintTy) -> Result<Self, ConstMathErr>

Trait Implementations

Derived Implementations

impl PartialEq for ConstUsize
[src]

fn eq(&self, __arg_0: &ConstUsize) -> bool

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

fn ne(&self, __arg_0: &ConstUsize) -> bool

This method tests for !=.

impl Eq for ConstUsize
[src]

impl Hash for ConstUsize
[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 ConstUsize
[src]

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

impl Encodable for ConstUsize
[src]

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

impl Debug for ConstUsize
[src]

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

Formats the value using the given formatter.

impl Clone for ConstUsize
[src]

fn clone(&self) -> ConstUsize

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 ConstUsize
[src]