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