Struct glsl_lang::ast::SelectionStatementData
source · [−]pub struct SelectionStatementData {
pub cond: Box<Node<ExprData>, Global>,
pub rest: Node<SelectionRestStatementData>,
}
Expand description
Selection statement.
Fields
cond: Box<Node<ExprData>, Global>
Condition to evaluate
rest: Node<SelectionRestStatementData>
Rest of the selection statement
Trait Implementations
sourceimpl Clone for SelectionStatementData
impl Clone for SelectionStatementData
sourcefn clone(&self) -> SelectionStatementData
fn clone(&self) -> SelectionStatementData
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 SelectionStatementData
impl Debug for SelectionStatementData
sourceimpl From<Node<SelectionStatementData>> for SelectionStatementData
impl From<Node<SelectionStatementData>> for SelectionStatementData
sourcefn from(node: Node<SelectionStatementData>) -> SelectionStatementData
fn from(node: Node<SelectionStatementData>) -> SelectionStatementData
Converts to this type from the input type.
sourceimpl NodeContent for SelectionStatementData
impl NodeContent for SelectionStatementData
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 SelectionStatementData
impl NodeContentDisplay for SelectionStatementData
sourceimpl PartialEq<SelectionStatementData> for SelectionStatementData
impl PartialEq<SelectionStatementData> for SelectionStatementData
sourcefn eq(&self, other: &SelectionStatementData) -> bool
fn eq(&self, other: &SelectionStatementData) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SelectionStatementData) -> bool
fn ne(&self, other: &SelectionStatementData) -> bool
This method tests for !=
.
impl StructuralPartialEq for SelectionStatementData
Auto Trait Implementations
impl RefUnwindSafe for SelectionStatementData
impl Send for SelectionStatementData
impl Sync for SelectionStatementData
impl Unpin for SelectionStatementData
impl UnwindSafe for SelectionStatementData
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