Struct glsl::syntax::SingleDeclaration
source · pub struct SingleDeclaration {
pub ty: FullySpecifiedType,
pub name: Option<Identifier>,
pub array_specifier: Option<ArraySpecifier>,
pub initializer: Option<Initializer>,
}
Expand description
Single declaration.
Fields§
§ty: FullySpecifiedType
§name: Option<Identifier>
§array_specifier: Option<ArraySpecifier>
§initializer: Option<Initializer>
Trait Implementations§
source§impl Clone for SingleDeclaration
impl Clone for SingleDeclaration
source§fn clone(&self) -> SingleDeclaration
fn clone(&self) -> SingleDeclaration
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 SingleDeclaration
impl Debug for SingleDeclaration
source§impl Host for SingleDeclaration
impl Host for SingleDeclaration
source§impl HostMut for SingleDeclaration
impl HostMut for SingleDeclaration
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 SingleDeclaration
impl Parse for SingleDeclaration
source§impl PartialEq for SingleDeclaration
impl PartialEq for SingleDeclaration
source§fn eq(&self, other: &SingleDeclaration) -> bool
fn eq(&self, other: &SingleDeclaration) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SingleDeclaration
Auto Trait Implementations§
impl RefUnwindSafe for SingleDeclaration
impl Send for SingleDeclaration
impl Sync for SingleDeclaration
impl Unpin for SingleDeclaration
impl UnwindSafe for SingleDeclaration
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