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 moresource§impl Debug for ExternalDeclaration
impl Debug for ExternalDeclaration
source§impl Host for ExternalDeclaration
impl Host for ExternalDeclaration
source§impl HostMut for ExternalDeclaration
impl HostMut for ExternalDeclaration
source§fn visit_mut<V>(&mut self, visitor: &mut V)where
V: VisitorMut,
fn visit_mut<V>(&mut self, visitor: &mut V)where V: VisitorMut,
Visit an AST node.
source§impl Parse for ExternalDeclaration
impl Parse for ExternalDeclaration
source§impl PartialEq<ExternalDeclaration> for ExternalDeclaration
impl PartialEq<ExternalDeclaration> for ExternalDeclaration
source§fn eq(&self, other: &ExternalDeclaration) -> bool
fn eq(&self, other: &ExternalDeclaration) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.