Struct glsl::syntax::PreprocessorVersion
source · pub struct PreprocessorVersion {
pub version: u16,
pub profile: Option<PreprocessorVersionProfile>,
}
Expand description
A #version preprocessor directive.
Fields§
§version: u16
§profile: Option<PreprocessorVersionProfile>
Trait Implementations§
source§impl Clone for PreprocessorVersion
impl Clone for PreprocessorVersion
source§fn clone(&self) -> PreprocessorVersion
fn clone(&self) -> PreprocessorVersion
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 PreprocessorVersion
impl Debug for PreprocessorVersion
source§impl Host for PreprocessorVersion
impl Host for PreprocessorVersion
source§impl HostMut for PreprocessorVersion
impl HostMut for PreprocessorVersion
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 PreprocessorVersion
impl Parse for PreprocessorVersion
source§impl PartialEq for PreprocessorVersion
impl PartialEq for PreprocessorVersion
source§fn eq(&self, other: &PreprocessorVersion) -> bool
fn eq(&self, other: &PreprocessorVersion) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PreprocessorVersion
Auto Trait Implementations§
impl RefUnwindSafe for PreprocessorVersion
impl Send for PreprocessorVersion
impl Sync for PreprocessorVersion
impl Unpin for PreprocessorVersion
impl UnwindSafe for PreprocessorVersion
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