Enum glsl::syntax::FunctionParameterDeclaration [−][src]
pub enum FunctionParameterDeclaration { Named(Option<TypeQualifier>, FunctionParameterDeclarator), Unnamed(Option<TypeQualifier>, TypeSpecifier), }
Function parameter declaration.
Variants
Unnamed(Option<TypeQualifier>, TypeSpecifier)
Implementations
impl FunctionParameterDeclaration
[src]
impl FunctionParameterDeclaration
[src]pub fn new_named<I, T>(ident: I, ty: T) -> Self where
I: Into<ArrayedIdentifier>,
T: Into<TypeSpecifier>,
[src]
I: Into<ArrayedIdentifier>,
T: Into<TypeSpecifier>,
Create a named function argument.
pub fn new_unnamed<T>(ty: T) -> Self where
T: Into<TypeSpecifier>,
[src]
T: Into<TypeSpecifier>,
Create an unnamed function argument (mostly useful for interfaces / function prototypes).
Trait Implementations
impl Clone for FunctionParameterDeclaration
[src]
impl Clone for FunctionParameterDeclaration
[src]fn clone(&self) -> FunctionParameterDeclaration
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Host for FunctionParameterDeclaration
[src]
impl Host for FunctionParameterDeclaration
[src]impl PartialEq<FunctionParameterDeclaration> for FunctionParameterDeclaration
[src]
impl PartialEq<FunctionParameterDeclaration> for FunctionParameterDeclaration
[src]