Enum glsl_lang::ast::CommentData
source · pub enum CommentData {
Single(String),
Multi(String),
}
Expand description
A comment
Variants§
Implementations§
Trait Implementations§
source§impl Clone for CommentData
impl Clone for CommentData
source§fn clone(&self) -> CommentData
fn clone(&self) -> CommentData
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 CommentData
impl Debug for CommentData
source§impl From<Node<CommentData>> for CommentData
impl From<Node<CommentData>> for CommentData
source§fn from(node: Node<CommentData>) -> CommentData
fn from(node: Node<CommentData>) -> CommentData
Converts to this type from the input type.
source§impl NodeContent for CommentData
impl NodeContent for CommentData
source§fn 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
source§fn spanned(self, start: LexerPosition, end: LexerPosition) -> Node<Self>
fn spanned(self, start: LexerPosition, end: LexerPosition) -> Node<Self>
Add span information to a syntax node
source§impl NodeContentDisplay for CommentData
impl NodeContentDisplay for CommentData
source§impl PartialEq for CommentData
impl PartialEq for CommentData
impl Eq for CommentData
impl StructuralPartialEq for CommentData
Auto Trait Implementations§
impl Freeze for CommentData
impl RefUnwindSafe for CommentData
impl Send for CommentData
impl Sync for CommentData
impl Unpin for CommentData
impl UnwindSafe for CommentData
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)