[−][src]Enum glsl::syntax::ExternalDeclaration
External declaration.
Variants
Preprocessor(Preprocessor)
FunctionDefinition(FunctionDefinition)
Declaration(Declaration)
Methods
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 Parse for ExternalDeclaration
[src]
impl Host for ExternalDeclaration
[src]
impl Clone for ExternalDeclaration
[src]
fn clone(&self) -> ExternalDeclaration
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl PartialEq<ExternalDeclaration> for ExternalDeclaration
[src]
fn eq(&self, other: &ExternalDeclaration) -> bool
[src]
fn ne(&self, other: &ExternalDeclaration) -> bool
[src]
impl Debug for ExternalDeclaration
[src]
Auto Trait Implementations
impl Send for ExternalDeclaration
impl Unpin for ExternalDeclaration
impl Sync for ExternalDeclaration
impl UnwindSafe for ExternalDeclaration
impl RefUnwindSafe for ExternalDeclaration
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,