pub struct CommentTrivia { /* private fields */ }Expand description
Comment blocks owned by one structural syntax item.
Outer comments are complete-line -- blocks documenting the item on
their right. Inner comments occur within the item, including delimited
block comments and -- comments following code on the same line.
Implementations§
Source§impl CommentTrivia
impl CommentTrivia
Trait Implementations§
Source§impl Clone for CommentTrivia
impl Clone for CommentTrivia
Source§fn clone(&self) -> CommentTrivia
fn clone(&self) -> CommentTrivia
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CommentTrivia
impl Debug for CommentTrivia
Source§impl Default for CommentTrivia
impl Default for CommentTrivia
Source§fn default() -> CommentTrivia
fn default() -> CommentTrivia
Returns the “default value” for a type. Read more
impl Eq for CommentTrivia
Source§impl Hash for CommentTrivia
impl Hash for CommentTrivia
Source§impl PartialEq for CommentTrivia
impl PartialEq for CommentTrivia
Source§impl PrettyTree for CommentTrivia
impl PrettyTree for CommentTrivia
Source§fn pretty_tree(&self) -> PrettyNode
fn pretty_tree(&self) -> PrettyNode
Builds the presentation node for this syntax value.
Source§impl Spanned for CommentTrivia
impl Spanned for CommentTrivia
impl StructuralPartialEq for CommentTrivia
Auto Trait Implementations§
impl Freeze for CommentTrivia
impl RefUnwindSafe for CommentTrivia
impl Send for CommentTrivia
impl Sync for CommentTrivia
impl Unpin for CommentTrivia
impl UnsafeUnpin for CommentTrivia
impl UnwindSafe for CommentTrivia
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