pub enum CommentKind {
Head,
Inline,
Foot,
}Expand description
One of the three comment kinds in the uniform model. Which kinds a format
supports is its comment capability - each format declares a
COMMENT_KINDS: &[CommentKind] (empty => no comments, subsuming the boolean
Feature::Comments). The # accessor addresses a node’s comment by kind.
Variants§
Head
Own-line comment(s) before the node - what # alone selects.
Inline
A trailing comment on the node’s line.
Foot
Own-line comment(s) after the node.
Implementations§
Trait Implementations§
Source§impl Clone for CommentKind
impl Clone for CommentKind
Source§fn clone(&self) -> CommentKind
fn clone(&self) -> CommentKind
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 moreimpl Copy for CommentKind
Source§impl Debug for CommentKind
impl Debug for CommentKind
impl Eq for CommentKind
Source§impl Hash for CommentKind
impl Hash for CommentKind
Source§impl PartialEq for CommentKind
impl PartialEq for CommentKind
Source§fn eq(&self, other: &CommentKind) -> bool
fn eq(&self, other: &CommentKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CommentKind
Auto Trait Implementations§
impl Freeze for CommentKind
impl RefUnwindSafe for CommentKind
impl Send for CommentKind
impl Sync for CommentKind
impl Unpin for CommentKind
impl UnsafeUnpin for CommentKind
impl UnwindSafe for CommentKind
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