Enum glsl_lang::ast::StatementData [−][src]
Statement.
Variants
Declaration(Declaration)
Declaration
Expression(ExprStatement)
Expression statement
Selection(SelectionStatement)
if/...
statement
Switch(SwitchStatement)
switch
statement
CaseLabel(CaseLabel)
Switch statement case label
Iteration(IterationStatement)
Iteration statement
Jump(JumpStatement)
Jump statement
Compound(CompoundStatement)
Statement block
Implementations
impl StatementData
[src]
pub fn declare_var<T, N, A, I>(
ty: T,
name: N,
array_specifier: A,
initializer: I
) -> Self where
T: Into<FullySpecifiedType>,
N: Into<IdentifierData>,
A: Into<Option<ArraySpecifier>>,
I: Into<Option<Initializer>>,
[src]
ty: T,
name: N,
array_specifier: A,
initializer: I
) -> Self where
T: Into<FullySpecifiedType>,
N: Into<IdentifierData>,
A: Into<Option<ArraySpecifier>>,
I: Into<Option<Initializer>>,
Declare a new variable.
ty
is the type of the variable, name
the name of the binding to create,
array_specifier
an optional argument to make your binding an array and
initializer
Trait Implementations
impl Clone for StatementData
[src]
fn clone(&self) -> StatementData
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for StatementData
[src]
impl NodeContent for StatementData
[src]
pub fn into_node<T>(self) -> Node<T> where
T: From<Self> + NodeContent,
[src]
T: From<Self> + NodeContent,
pub fn spanned(self, start: LexerPosition, end: LexerPosition) -> Node<Self>
[src]
impl NodeContentDisplay for StatementData
[src]
fn name() -> Option<&'static str>
[src]
fn display_extra(&self, f: &mut Formatter<'_>) -> Result
[src]
fn display_children(&self, level: usize, f: &mut Formatter<'_>) -> Result
[src]
impl NodeContentEq for StatementData
[src]
fn content_eq(&self, other: &Self) -> bool
[src]
impl PartialEq<StatementData> for StatementData
[src]
fn eq(&self, other: &StatementData) -> bool
[src]
fn ne(&self, other: &StatementData) -> bool
[src]
impl StructuralPartialEq for StatementData
[src]
Auto Trait Implementations
impl RefUnwindSafe for StatementData
impl Send for StatementData
impl Sync for StatementData
impl Unpin for StatementData
impl UnwindSafe for StatementData
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoResult<T> for T
[src]
type Err = Infallible
pub fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>
[src]
impl<T> NodeDisplay for T where
T: NodeContentDisplay,
[src]
T: NodeContentDisplay,
pub fn name() -> Option<&'static str>
[src]
pub fn start(&self) -> Option<usize>
[src]
pub fn end(&self) -> Option<usize>
[src]
pub fn source_id(&self) -> Option<usize>
[src]
pub fn display(&self) -> NodeDisplayWrapper<'_, T>
[src]
pub fn display_extra(&self, f: &mut Formatter<'_>) -> Result<(), Error>
[src]
pub fn display_children(
&self,
level: usize,
f: &mut Formatter<'_>
) -> Result<(), Error>
[src]
&self,
level: usize,
f: &mut Formatter<'_>
) -> Result<(), Error>
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,