Enum makepad_shader_compiler::shader_ast::BinOp
source · [−]pub enum BinOp {
Show 17 variants
Assign,
AddAssign,
SubAssign,
MulAssign,
DivAssign,
Or,
And,
Eq,
Ne,
Lt,
Le,
Gt,
Ge,
Add,
Sub,
Mul,
Div,
}
Variants
Assign
AddAssign
SubAssign
MulAssign
DivAssign
Or
And
Eq
Ne
Lt
Le
Gt
Ge
Add
Sub
Mul
Div
Implementations
sourceimpl BinOp
impl BinOp
pub fn from_assign_op(token: LiveToken) -> Option<BinOp>
pub fn from_or_op(token: LiveToken) -> Option<BinOp>
pub fn from_and_op(token: LiveToken) -> Option<BinOp>
pub fn from_eq_op(token: LiveToken) -> Option<BinOp>
pub fn from_rel_op(token: LiveToken) -> Option<BinOp>
pub fn from_add_op(token: LiveToken) -> Option<BinOp>
pub fn from_mul_op(token: LiveToken) -> Option<BinOp>
Trait Implementations
impl Copy for BinOp
Auto Trait Implementations
impl RefUnwindSafe for BinOp
impl Send for BinOp
impl Sync for BinOp
impl Unpin for BinOp
impl UnwindSafe for BinOp
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more