Struct glsl::syntax::TranslationUnit
source · pub struct TranslationUnit(pub NonEmpty<ExternalDeclaration>);
Expand description
Starting rule.
Tuple Fields§
§0: NonEmpty<ExternalDeclaration>
Implementations§
source§impl TranslationUnit
impl TranslationUnit
sourcepub fn from_iter<I>(iter: I) -> Option<Self>where
I: IntoIterator<Item = ExternalDeclaration>,
pub fn from_iter<I>(iter: I) -> Option<Self>where
I: IntoIterator<Item = ExternalDeclaration>,
Trait Implementations§
source§impl Clone for TranslationUnit
impl Clone for TranslationUnit
source§fn clone(&self) -> TranslationUnit
fn clone(&self) -> TranslationUnit
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 TranslationUnit
impl Debug for TranslationUnit
source§impl Host for TranslationUnit
impl Host for TranslationUnit
source§impl<'a> IntoIterator for &'a TranslationUnit
impl<'a> IntoIterator for &'a TranslationUnit
§type IntoIter = <&'a NonEmpty<ExternalDeclaration> as IntoIterator>::IntoIter
type IntoIter = <&'a NonEmpty<ExternalDeclaration> as IntoIterator>::IntoIter
Which kind of iterator are we turning this into?
§type Item = &'a ExternalDeclaration
type Item = &'a ExternalDeclaration
The type of the elements being iterated over.
source§impl<'a> IntoIterator for &'a mut TranslationUnit
impl<'a> IntoIterator for &'a mut TranslationUnit
§type IntoIter = <&'a mut NonEmpty<ExternalDeclaration> as IntoIterator>::IntoIter
type IntoIter = <&'a mut NonEmpty<ExternalDeclaration> as IntoIterator>::IntoIter
Which kind of iterator are we turning this into?
§type Item = &'a mut ExternalDeclaration
type Item = &'a mut ExternalDeclaration
The type of the elements being iterated over.
source§impl IntoIterator for TranslationUnit
impl IntoIterator for TranslationUnit
§type IntoIter = <NonEmpty<ExternalDeclaration> as IntoIterator>::IntoIter
type IntoIter = <NonEmpty<ExternalDeclaration> as IntoIterator>::IntoIter
Which kind of iterator are we turning this into?
§type Item = ExternalDeclaration
type Item = ExternalDeclaration
The type of the elements being iterated over.