Enum glsl::syntax::ExternalDeclaration [−][src]
pub enum ExternalDeclaration { Preprocessor(Preprocessor), FunctionDefinition(FunctionDefinition), Declaration(Declaration), }
External declaration.
Variants
Preprocessor(Preprocessor)
FunctionDefinition(FunctionDefinition)
Declaration(Declaration)
Implementations
impl ExternalDeclaration
[src]
impl ExternalDeclaration
[src]pub fn new_fn<T, N, A, S>(ret_ty: T, name: N, args: A, body: S) -> Self where
T: Into<FullySpecifiedType>,
N: Into<Identifier>,
A: IntoIterator<Item = FunctionParameterDeclaration>,
S: IntoIterator<Item = Statement>,
[src]
T: Into<FullySpecifiedType>,
N: Into<Identifier>,
A: IntoIterator<Item = FunctionParameterDeclaration>,
S: IntoIterator<Item = Statement>,
Create a new function.
pub fn new_struct<N, F>(name: N, fields: F) -> Option<Self> where
N: Into<TypeName>,
F: IntoIterator<Item = StructFieldSpecifier>,
[src]
N: Into<TypeName>,
F: IntoIterator<Item = StructFieldSpecifier>,
Trait Implementations
impl Clone for ExternalDeclaration
[src]
impl Clone for ExternalDeclaration
[src]fn clone(&self) -> ExternalDeclaration
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Host for ExternalDeclaration
[src]
impl Host for ExternalDeclaration
[src]impl Parse for ExternalDeclaration
[src]
impl Parse for ExternalDeclaration
[src]impl PartialEq<ExternalDeclaration> for ExternalDeclaration
[src]
impl PartialEq<ExternalDeclaration> for ExternalDeclaration
[src]