Enum glsl_lang::ast::UnaryOpData
source · [−]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
sourceimpl Clone for UnaryOpData
impl Clone for UnaryOpData
sourcefn clone(&self) -> UnaryOpData
fn clone(&self) -> UnaryOpData
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 UnaryOpData
impl Debug for UnaryOpData
sourceimpl From<Node<UnaryOpData>> for UnaryOpData
impl From<Node<UnaryOpData>> for UnaryOpData
sourcefn from(node: Node<UnaryOpData>) -> UnaryOpData
fn from(node: Node<UnaryOpData>) -> UnaryOpData
Converts to this type from the input type.
sourceimpl NodeContent for UnaryOpData
impl NodeContent for UnaryOpData
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 UnaryOpData
impl NodeContentDisplay for UnaryOpData
sourceimpl PartialEq<UnaryOpData> for UnaryOpData
impl PartialEq<UnaryOpData> for UnaryOpData
impl StructuralPartialEq for UnaryOpData
Auto Trait Implementations
impl RefUnwindSafe for UnaryOpData
impl Send for UnaryOpData
impl Sync for UnaryOpData
impl Unpin for UnaryOpData
impl UnwindSafe for UnaryOpData
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