Struct glsl_lang::ast::PreprocessorExtensionData
source · [−]pub struct PreprocessorExtensionData {
pub name: Node<PreprocessorExtensionNameData>,
pub behavior: Option<Node<PreprocessorExtensionBehaviorData>>,
}
Expand description
An #extension preprocessor directive.
Fields
name: Node<PreprocessorExtensionNameData>
Name of the target extension
behavior: Option<Node<PreprocessorExtensionBehaviorData>>
Behavior for the extension
Trait Implementations
sourceimpl Clone for PreprocessorExtensionData
impl Clone for PreprocessorExtensionData
sourcefn clone(&self) -> PreprocessorExtensionData
fn clone(&self) -> PreprocessorExtensionData
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 PreprocessorExtensionData
impl Debug for PreprocessorExtensionData
sourceimpl From<Node<PreprocessorExtensionData>> for PreprocessorExtensionData
impl From<Node<PreprocessorExtensionData>> for PreprocessorExtensionData
sourcefn from(node: Node<PreprocessorExtensionData>) -> PreprocessorExtensionData
fn from(node: Node<PreprocessorExtensionData>) -> PreprocessorExtensionData
Converts to this type from the input type.
sourceimpl NodeContent for PreprocessorExtensionData
impl NodeContent for PreprocessorExtensionData
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 PreprocessorExtensionData
impl NodeContentDisplay for PreprocessorExtensionData
sourceimpl PartialEq<PreprocessorExtensionData> for PreprocessorExtensionData
impl PartialEq<PreprocessorExtensionData> for PreprocessorExtensionData
sourcefn eq(&self, other: &PreprocessorExtensionData) -> bool
fn eq(&self, other: &PreprocessorExtensionData) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PreprocessorExtensionData) -> bool
fn ne(&self, other: &PreprocessorExtensionData) -> bool
This method tests for !=
.
impl StructuralPartialEq for PreprocessorExtensionData
Auto Trait Implementations
impl RefUnwindSafe for PreprocessorExtensionData
impl Send for PreprocessorExtensionData
impl Sync for PreprocessorExtensionData
impl Unpin for PreprocessorExtensionData
impl UnwindSafe for PreprocessorExtensionData
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