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>
pub fn new_struct<N, F>(name: N, fields: F) -> Option<Self>
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 for ExternalDeclaration
impl PartialEq 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 ==
.impl StructuralPartialEq for ExternalDeclaration
Auto Trait Implementations§
impl RefUnwindSafe for ExternalDeclaration
impl Send for ExternalDeclaration
impl Sync for ExternalDeclaration
impl Unpin for ExternalDeclaration
impl UnwindSafe for ExternalDeclaration
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more