#[repr(C)]pub struct AstExprBinary {
pub base: AstExpr,
pub op: AstExprBinary_Op,
pub left: *mut AstExpr,
pub right: *mut AstExpr,
}Fields§
§base: AstExpr§op: AstExprBinary_Op§left: *mut AstExpr§right: *mut AstExprImplementations§
Source§impl AstExprBinary
impl AstExprBinary
pub fn new( location: Location, op: AstExprBinary_Op, left: *mut AstExpr, right: *mut AstExpr, ) -> AstExprBinary
Source§impl AstExprBinary
impl AstExprBinary
pub const Add: AstExprBinary_Op = AstExprBinary_Op::Add
pub const Sub: AstExprBinary_Op = AstExprBinary_Op::Sub
pub const Mul: AstExprBinary_Op = AstExprBinary_Op::Mul
pub const Div: AstExprBinary_Op = AstExprBinary_Op::Div
pub const FloorDiv: AstExprBinary_Op = AstExprBinary_Op::FloorDiv
pub const Mod: AstExprBinary_Op = AstExprBinary_Op::Mod
pub const Pow: AstExprBinary_Op = AstExprBinary_Op::Pow
pub const Concat: AstExprBinary_Op = AstExprBinary_Op::Concat
pub const CompareNe: AstExprBinary_Op = AstExprBinary_Op::CompareNe
pub const CompareEq: AstExprBinary_Op = AstExprBinary_Op::CompareEq
pub const CompareLt: AstExprBinary_Op = AstExprBinary_Op::CompareLt
pub const CompareLe: AstExprBinary_Op = AstExprBinary_Op::CompareLe
pub const CompareGt: AstExprBinary_Op = AstExprBinary_Op::CompareGt
pub const CompareGe: AstExprBinary_Op = AstExprBinary_Op::CompareGe
pub const And: AstExprBinary_Op = AstExprBinary_Op::And
pub const Or: AstExprBinary_Op = AstExprBinary_Op::Or
pub const Op__Count: AstExprBinary_Op = AstExprBinary_Op::Op__Count
Trait Implementations§
Source§impl AstNodeClass for AstExprBinary
impl AstNodeClass for AstExprBinary
Source§const CLASS_INDEX: i32
const CLASS_INDEX: i32
The node’s RTTI id; mirrors
T::ClassIndex().Source§impl AstVisitable for AstExprBinary
impl AstVisitable for AstExprBinary
fn visit(&self, visitor: &mut dyn AstVisitor)
Auto Trait Implementations§
impl !Send for AstExprBinary
impl !Sync for AstExprBinary
impl Freeze for AstExprBinary
impl RefUnwindSafe for AstExprBinary
impl Unpin for AstExprBinary
impl UnsafeUnpin for AstExprBinary
impl UnwindSafe for AstExprBinary
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