Enum glsl_lang::ast::BinaryOpData
source · [−]pub enum BinaryOpData {
Show 19 variants
Or,
Xor,
And,
BitOr,
BitXor,
BitAnd,
Equal,
NonEqual,
Lt,
Gt,
Lte,
Gte,
LShift,
RShift,
Add,
Sub,
Mult,
Div,
Mod,
}
Expand description
All binary operators that exist in GLSL.
Variants
Or
||
binary operator
Xor
^^
binary operator
And
&&
binary operator
BitOr
|
binary operator
BitXor
^
binary operator
BitAnd
&
binary operator
Equal
==
binary operator
NonEqual
!=
binary operator
Lt
<
binary operator
Gt
>
binary operator
Lte
<=
binary operator
Gte
>=
binary operator
LShift
<<
binary operator
RShift
>>
binary operator
Add
+
binary operator
Sub
-
binary operator
Mult
*
binary operator
Div
/
binary operator
Mod
%
binary operator
Trait Implementations
sourceimpl Clone for BinaryOpData
impl Clone for BinaryOpData
sourcefn clone(&self) -> BinaryOpData
fn clone(&self) -> BinaryOpData
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for BinaryOpData
impl Debug for BinaryOpData
sourceimpl From<Node<BinaryOpData>> for BinaryOpData
impl From<Node<BinaryOpData>> for BinaryOpData
sourcefn from(node: Node<BinaryOpData>) -> BinaryOpData
fn from(node: Node<BinaryOpData>) -> BinaryOpData
Converts to this type from the input type.
sourceimpl NodeContent for BinaryOpData
impl NodeContent for BinaryOpData
sourcefn into_node<T>(self) -> Node<T> where
T: From<Self> + NodeContent,
fn into_node<T>(self) -> Node<T> where
T: From<Self> + NodeContent,
Convert the contents into a node
sourcefn spanned(self, start: LexerPosition, end: LexerPosition) -> Node<Self>
fn spanned(self, start: LexerPosition, end: LexerPosition) -> Node<Self>
Add span information to a syntax node
sourceimpl NodeContentDisplay for BinaryOpData
impl NodeContentDisplay for BinaryOpData
sourceimpl PartialEq<BinaryOpData> for BinaryOpData
impl PartialEq<BinaryOpData> for BinaryOpData
impl StructuralPartialEq for BinaryOpData
Auto Trait Implementations
impl RefUnwindSafe for BinaryOpData
impl Send for BinaryOpData
impl Sync for BinaryOpData
impl Unpin for BinaryOpData
impl UnwindSafe for BinaryOpData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> NodeDisplay for T where
T: NodeContentDisplay,
impl<T> NodeDisplay for T where
T: NodeContentDisplay,
sourcefn display(&self) -> NodeDisplayWrapper<'_, T>
fn display(&self) -> NodeDisplayWrapper<'_, T>
Obtain a display wrapper for the current node