Struct glsl_lang::ast::PreprocessorIfNDefData
source · [−]pub struct PreprocessorIfNDefData {
pub ident: Node<IdentifierData>,
}
Expand description
A #ifndef preprocessor directive.
Fields
ident: Node<IdentifierData>
Identifier to test
Trait Implementations
sourceimpl Clone for PreprocessorIfNDefData
impl Clone for PreprocessorIfNDefData
sourcefn clone(&self) -> PreprocessorIfNDefData
fn clone(&self) -> PreprocessorIfNDefData
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PreprocessorIfNDefData
impl Debug for PreprocessorIfNDefData
sourceimpl From<Node<PreprocessorIfNDefData>> for PreprocessorIfNDefData
impl From<Node<PreprocessorIfNDefData>> for PreprocessorIfNDefData
sourcefn from(node: Node<PreprocessorIfNDefData>) -> PreprocessorIfNDefData
fn from(node: Node<PreprocessorIfNDefData>) -> PreprocessorIfNDefData
Converts to this type from the input type.
sourceimpl NodeContent for PreprocessorIfNDefData
impl NodeContent for PreprocessorIfNDefData
sourcefn into_node<T>(self) -> Node<T> where
T: From<Self> + NodeContent,
fn into_node<T>(self) -> Node<T> where
T: From<Self> + NodeContent,
Convert the contents into a node
sourcefn spanned(self, start: LexerPosition, end: LexerPosition) -> Node<Self>
fn spanned(self, start: LexerPosition, end: LexerPosition) -> Node<Self>
Add span information to a syntax node
sourceimpl NodeContentDisplay for PreprocessorIfNDefData
impl NodeContentDisplay for PreprocessorIfNDefData
sourceimpl PartialEq<PreprocessorIfNDefData> for PreprocessorIfNDefData
impl PartialEq<PreprocessorIfNDefData> for PreprocessorIfNDefData
sourcefn eq(&self, other: &PreprocessorIfNDefData) -> bool
fn eq(&self, other: &PreprocessorIfNDefData) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PreprocessorIfNDefData) -> bool
fn ne(&self, other: &PreprocessorIfNDefData) -> bool
This method tests for !=
.
impl StructuralPartialEq for PreprocessorIfNDefData
Auto Trait Implementations
impl RefUnwindSafe for PreprocessorIfNDefData
impl Send for PreprocessorIfNDefData
impl Sync for PreprocessorIfNDefData
impl Unpin for PreprocessorIfNDefData
impl UnwindSafe for PreprocessorIfNDefData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> NodeDisplay for T where
T: NodeContentDisplay,
impl<T> NodeDisplay for T where
T: NodeContentDisplay,
sourcefn display(&self) -> NodeDisplayWrapper<'_, T>
fn display(&self) -> NodeDisplayWrapper<'_, T>
Obtain a display wrapper for the current node