Struct bounded_integer_plugin::IntLit
[−]
[src]
pub struct IntLit { pub neg: bool, pub int: u64, }
Signed integer literal.
Fields
neg: bool
Negative.
int: u64
Integer.
Methods
impl IntLit
[src]
fn from_expr(expr: &Expr) -> Result<Self, ()>
Extracts an integer literal from an expression.
fn into_expr(self, cx: &ExtCtxt, sp: Span) -> P<Expr>
Creates an integer literal expression.
fn into_ident(self, cx: &ExtCtxt) -> Ident
Creates an ident for an integer literal of the form ...N1, Z0, P1...
.
fn succ(self) -> Self
Returns the successive integer literal.
Trait Implementations
impl PartialOrd for IntLit
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for IntLit
[src]
fn cmp(&self, other: &Self) -> Ordering
This method returns an Ordering
between self
and other
. Read more
Derived Implementations
impl Eq for IntLit
[src]
impl PartialEq for IntLit
[src]
fn eq(&self, __arg_0: &IntLit) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &IntLit) -> bool
This method tests for !=
.
impl Copy for IntLit
[src]
impl Clone for IntLit
[src]
fn clone(&self) -> IntLit
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