[−][src]Struct glsl::syntax::TranslationUnit
Starting rule.
Methods
impl TranslationUnit
[src]
pub fn from_iter<I>(iter: I) -> Option<Self> where
I: IntoIterator<Item = ExternalDeclaration>,
[src]
I: IntoIterator<Item = ExternalDeclaration>,
Methods from Deref<Target = NonEmpty<ExternalDeclaration>>
pub fn push(&mut self, item: T)
[src]
Move a new item at the end of the non-empty.
pub fn pop(&mut self) -> Option<T>
[src]
Move out the last element of the non-empty.
Errors
This function returns None
if called on a non-empty that contains a single element.
Trait Implementations
impl Parse for TranslationUnit
[src]
impl Host for TranslationUnit
[src]
impl PartialEq<TranslationUnit> for TranslationUnit
[src]
fn eq(&self, other: &TranslationUnit) -> bool
[src]
fn ne(&self, other: &TranslationUnit) -> bool
[src]
impl Clone for TranslationUnit
[src]
fn clone(&self) -> TranslationUnit
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl IntoIterator for TranslationUnit
[src]
type IntoIter = <NonEmpty<ExternalDeclaration> as IntoIterator>::IntoIter
Which kind of iterator are we turning this into?
type Item = ExternalDeclaration
The type of the elements being iterated over.
fn into_iter(self) -> Self::IntoIter
[src]
impl<'a> IntoIterator for &'a TranslationUnit
[src]
type IntoIter = <&'a NonEmpty<ExternalDeclaration> as IntoIterator>::IntoIter
Which kind of iterator are we turning this into?
type Item = &'a ExternalDeclaration
The type of the elements being iterated over.
fn into_iter(self) -> Self::IntoIter
[src]
impl<'a> IntoIterator for &'a mut TranslationUnit
[src]
type IntoIter = <&'a mut NonEmpty<ExternalDeclaration> as IntoIterator>::IntoIter
Which kind of iterator are we turning this into?
type Item = &'a mut ExternalDeclaration
The type of the elements being iterated over.
fn into_iter(self) -> Self::IntoIter
[src]
impl DerefMut for TranslationUnit
[src]
impl Deref for TranslationUnit
[src]
type Target = NonEmpty<ExternalDeclaration>
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl Debug for TranslationUnit
[src]
Auto Trait Implementations
impl Unpin for TranslationUnit
impl Sync for TranslationUnit
impl Send for TranslationUnit
impl RefUnwindSafe for TranslationUnit
impl UnwindSafe for TranslationUnit
Blanket Implementations
impl<T> From<T> for T
[src]
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<I> IntoIterator for I where
I: Iterator,
[src]
I: Iterator,
type Item = <I as Iterator>::Item
The type of the elements being iterated over.
type IntoIter = I
Which kind of iterator are we turning this into?
fn into_iter(self) -> I
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,