pub enum UnaryOpData {
Inc,
Dec,
Add,
Minus,
Not,
Complement,
}
Expand description
All unary operators that exist in GLSL.
Variants§
Inc
++
unary operator
Dec
--
unary operator
Add
+
unary operator
Minus
-
unary operator
Not
!
unary operator
Complement
~
unary operator
Trait Implementations§
Source§impl Clone for UnaryOpData
impl Clone for UnaryOpData
Source§fn clone(&self) -> UnaryOpData
fn clone(&self) -> UnaryOpData
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 moreSource§impl Debug for UnaryOpData
impl Debug for UnaryOpData
Source§impl From<Node<UnaryOpData>> for UnaryOpData
impl From<Node<UnaryOpData>> for UnaryOpData
Source§fn from(node: Node<UnaryOpData>) -> UnaryOpData
fn from(node: Node<UnaryOpData>) -> UnaryOpData
Converts to this type from the input type.
Source§impl NodeContent for UnaryOpData
impl NodeContent for UnaryOpData
Source§fn 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
Source§fn spanned(self, start: LexerPosition, end: LexerPosition) -> Node<Self>
fn spanned(self, start: LexerPosition, end: LexerPosition) -> Node<Self>
Add span information to a syntax node
Source§impl NodeContentDisplay for UnaryOpData
impl NodeContentDisplay for UnaryOpData
Source§impl PartialEq for UnaryOpData
impl PartialEq for UnaryOpData
impl Eq for UnaryOpData
impl StructuralPartialEq for UnaryOpData
Auto Trait Implementations§
impl Freeze for UnaryOpData
impl RefUnwindSafe for UnaryOpData
impl Send for UnaryOpData
impl Sync for UnaryOpData
impl Unpin for UnaryOpData
impl UnwindSafe for UnaryOpData
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