Enum glsl::syntax::ExternalDeclaration
source · pub enum ExternalDeclaration {
Preprocessor(Preprocessor),
FunctionDefinition(FunctionDefinition),
Declaration(Declaration),
}
Expand description
External declaration.
Variants§
Implementations§
source§impl ExternalDeclaration
impl ExternalDeclaration
sourcepub fn new_fn<T, N, A, S>(ret_ty: T, name: N, args: A, body: S) -> Selfwhere
T: Into<FullySpecifiedType>,
N: Into<Identifier>,
A: IntoIterator<Item = FunctionParameterDeclaration>,
S: IntoIterator<Item = Statement>,
pub fn new_fn<T, N, A, S>(ret_ty: T, name: N, args: A, body: S) -> Selfwhere
T: Into<FullySpecifiedType>,
N: Into<Identifier>,
A: IntoIterator<Item = FunctionParameterDeclaration>,
S: IntoIterator<Item = Statement>,
Create a new function.
sourcepub fn new_struct<N, F>(name: N, fields: F) -> Option<Self>where
N: Into<TypeName>,
F: IntoIterator<Item = StructFieldSpecifier>,
pub fn new_struct<N, F>(name: N, fields: F) -> Option<Self>where
N: Into<TypeName>,
F: IntoIterator<Item = StructFieldSpecifier>,
Trait Implementations§
source§impl Clone for ExternalDeclaration
impl Clone for ExternalDeclaration
source§fn clone(&self) -> ExternalDeclaration
fn clone(&self) -> ExternalDeclaration
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more