Enum glsl_lang::ast::ConditionData
source · [−]pub enum ConditionData {
Expr(Node<ExprData>),
Assignment(Box<Node<FullySpecifiedTypeData>, Global>, Node<IdentifierData>, Node<InitializerData>),
}
Expand description
Condition.
Variants
Expr(Node<ExprData>)
An expression
Assignment(Box<Node<FullySpecifiedTypeData>, Global>, Node<IdentifierData>, Node<InitializerData>)
A variable declaration used as a condition
Trait Implementations
sourceimpl Clone for ConditionData
impl Clone for ConditionData
sourcefn clone(&self) -> ConditionData
fn clone(&self) -> ConditionData
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 ConditionData
impl Debug for ConditionData
sourceimpl From<Node<ConditionData>> for ConditionData
impl From<Node<ConditionData>> for ConditionData
sourcefn from(node: Node<ConditionData>) -> ConditionData
fn from(node: Node<ConditionData>) -> ConditionData
Converts to this type from the input type.
sourceimpl NodeContent for ConditionData
impl NodeContent for ConditionData
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 ConditionData
impl NodeContentDisplay for ConditionData
sourceimpl PartialEq<ConditionData> for ConditionData
impl PartialEq<ConditionData> for ConditionData
sourcefn eq(&self, other: &ConditionData) -> bool
fn eq(&self, other: &ConditionData) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ConditionData) -> bool
fn ne(&self, other: &ConditionData) -> bool
This method tests for !=
.
impl StructuralPartialEq for ConditionData
Auto Trait Implementations
impl RefUnwindSafe for ConditionData
impl Send for ConditionData
impl Sync for ConditionData
impl Unpin for ConditionData
impl UnwindSafe for ConditionData
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