Struct AstExpressionFlags
pub struct AstExpressionFlags(/* private fields */);Expand description
Metadata flags associated with an AstExpression.
Implementations§
§impl AstExpressionFlags
impl AstExpressionFlags
pub fn none() -> Self
pub fn none() -> Self
Creates the flags with no flags set.
pub fn contains(&self, flag: AstExpressionFlag) -> bool
pub fn contains(&self, flag: AstExpressionFlag) -> bool
Is the given flag set?
pub fn insert(&mut self, flag: AstExpressionFlag)
pub fn insert(&mut self, flag: AstExpressionFlag)
Sets a flag.
pub fn remove(&mut self, flag: AstExpressionFlag)
Trait Implementations§
§impl BitAnd for AstExpressionFlags
impl BitAnd for AstExpressionFlags
§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 AstExpressionFlags
impl BitOr for AstExpressionFlags
§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 AstExpressionFlags
impl Clone for AstExpressionFlags
§fn clone(&self) -> AstExpressionFlags
fn clone(&self) -> AstExpressionFlags
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 AstExpressionFlags
impl Debug for AstExpressionFlags
§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 AstExpressionFlags
impl PartialEq for AstExpressionFlags
impl Copy for AstExpressionFlags
impl Eq for AstExpressionFlags
impl StructuralPartialEq for AstExpressionFlags
Auto Trait Implementations§
impl Freeze for AstExpressionFlags
impl RefUnwindSafe for AstExpressionFlags
impl Send for AstExpressionFlags
impl Sync for AstExpressionFlags
impl Unpin for AstExpressionFlags
impl UnwindSafe for AstExpressionFlags
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