Enum AstExpressionFlag
#[repr(u8)]pub enum AstExpressionFlag {
IsConstant = 1,
IsStaticStorageInit = 2,
HasParens = 4,
PromotedToInt = 8,
}Expand description
A flag which indicates a property of an AST expression.
Variants§
IsConstant = 1
The expression is a constant (literal).
IsStaticStorageInit = 2
The expression is an initializer for a static storage variable.
HasParens = 4
The expression is enclosed in parentheses in the source code.
PromotedToInt = 8
The expression’s type was promoted to ‘int’ due to integer promotion rules.
Trait Implementations§
§impl BitOr<AstExpressionFlag> for AstExpressionFlags
impl BitOr<AstExpressionFlag> for AstExpressionFlags
§type Output = AstExpressionFlags
type Output = AstExpressionFlags
The resulting type after applying the
| operator.§fn bitor(self, rhs: AstExpressionFlag) -> Self
fn bitor(self, rhs: AstExpressionFlag) -> Self
Performs the
| operation. Read more§impl BitOr for AstExpressionFlag
impl BitOr for AstExpressionFlag
§type Output = AstExpressionFlags
type Output = AstExpressionFlags
The resulting type after applying the
| operator.§fn bitor(self, rhs: AstExpressionFlag) -> Self::Output
fn bitor(self, rhs: AstExpressionFlag) -> Self::Output
Performs the
| operation. Read more§impl BitOrAssign<AstExpressionFlag> for AstExpressionFlags
impl BitOrAssign<AstExpressionFlag> for AstExpressionFlags
§fn bitor_assign(&mut self, rhs: AstExpressionFlag)
fn bitor_assign(&mut self, rhs: AstExpressionFlag)
Performs the
|= operation. Read more§impl Clone for AstExpressionFlag
impl Clone for AstExpressionFlag
§fn clone(&self) -> AstExpressionFlag
fn clone(&self) -> AstExpressionFlag
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for AstExpressionFlag
impl Debug for AstExpressionFlag
§impl From<AstExpressionFlag> for AstExpressionFlags
impl From<AstExpressionFlag> for AstExpressionFlags
§fn from(flag: AstExpressionFlag) -> Self
fn from(flag: AstExpressionFlag) -> Self
Converts to this type from the input type.
§impl PartialEq for AstExpressionFlag
impl PartialEq for AstExpressionFlag
impl Copy for AstExpressionFlag
impl Eq for AstExpressionFlag
impl StructuralPartialEq for AstExpressionFlag
Auto Trait Implementations§
impl Freeze for AstExpressionFlag
impl RefUnwindSafe for AstExpressionFlag
impl Send for AstExpressionFlag
impl Sync for AstExpressionFlag
impl Unpin for AstExpressionFlag
impl UnwindSafe for AstExpressionFlag
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more