Enum glsl::syntax::PreprocessorDefine
source · pub enum PreprocessorDefine {
ObjectLike {
ident: Identifier,
value: String,
},
FunctionLike {
ident: Identifier,
args: Vec<Identifier>,
value: String,
},
}
Expand description
A #define preprocessor directive.
Allows any expression but only Integer and Float literals make sense
Variants§
Trait Implementations§
source§impl Clone for PreprocessorDefine
impl Clone for PreprocessorDefine
source§fn clone(&self) -> PreprocessorDefine
fn clone(&self) -> PreprocessorDefine
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 PreprocessorDefine
impl Debug for PreprocessorDefine
source§impl Host for PreprocessorDefine
impl Host for PreprocessorDefine
source§impl HostMut for PreprocessorDefine
impl HostMut for PreprocessorDefine
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 PartialEq for PreprocessorDefine
impl PartialEq for PreprocessorDefine
source§fn eq(&self, other: &PreprocessorDefine) -> bool
fn eq(&self, other: &PreprocessorDefine) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PreprocessorDefine
Auto Trait Implementations§
impl RefUnwindSafe for PreprocessorDefine
impl Send for PreprocessorDefine
impl Sync for PreprocessorDefine
impl Unpin for PreprocessorDefine
impl UnwindSafe for PreprocessorDefine
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