pub enum CommentType {
SingleLine,
MultiLine,
}Expand description
Comment type markers for single-line (//) and multi-line (/* */) comments.
Variants§
Implementations§
Source§impl CommentType
impl CommentType
Sourcepub fn into_owned(self) -> CommentType
pub fn into_owned(self) -> CommentType
Copy the structure and clone the original values if it’s not owned.
This is always a deep copy of the structure.
Trait Implementations§
Source§impl Clone for CommentType
impl Clone for CommentType
Source§fn clone(&self) -> CommentType
fn clone(&self) -> CommentType
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 CommentType
impl Debug for CommentType
Source§impl IntoOwned for CommentType
impl IntoOwned for CommentType
Source§type Owned = CommentType
type Owned = CommentType
The type after obtaining ownership, should be the same as before but with static lifetime.
Source§fn into_owned(self) -> Self::Owned
fn into_owned(self) -> Self::Owned
Copy the structure and clone the original values if it’s not owned. Read more
Source§impl PartialEq for CommentType
impl PartialEq for CommentType
impl StructuralPartialEq for CommentType
Auto Trait Implementations§
impl Freeze for CommentType
impl RefUnwindSafe for CommentType
impl Send for CommentType
impl Sync for CommentType
impl Unpin for CommentType
impl UnwindSafe for CommentType
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