pub enum CommentKind {
Line,
Hash,
Block,
Doc,
}Expand description
Distinguishes the four syntactic forms of PHP comment.
Variants§
Line
// … — single-line slash comment
Hash
# … — single-line hash comment
Block
/* … */ — block comment
Doc
/** … */ — doc-block comment (first non-whitespace char after /* is *)
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 · 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 CommentKind
impl Debug for CommentKind
Source§impl PartialEq for CommentKind
impl PartialEq for CommentKind
Source§impl Serialize for CommentKind
impl Serialize for CommentKind
impl Copy for CommentKind
impl Eq for CommentKind
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