pub enum FullComment {
OwnLineComment(OwnLineComment),
SameLineComment(SameLineComment),
}
Variants§
OwnLineComment(OwnLineComment)
SameLineComment(SameLineComment)
Implementations§
Source§impl FullComment
impl FullComment
pub fn own_line_comment(&self) -> Option<&OwnLineComment>
pub fn own_line_comment_mut(&mut self) -> Option<&mut OwnLineComment>
pub fn into_own_line_comment(self) -> Option<OwnLineComment>
pub fn same_line_comment(&self) -> Option<&SameLineComment>
pub fn same_line_comment_mut(&mut self) -> Option<&mut SameLineComment>
pub fn into_same_line_comment(self) -> Option<SameLineComment>
Trait Implementations§
Source§impl Clone for FullComment
impl Clone for FullComment
Source§fn clone(&self) -> FullComment
fn clone(&self) -> FullComment
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 FullComment
impl Debug for FullComment
Auto Trait Implementations§
impl Freeze for FullComment
impl RefUnwindSafe for FullComment
impl Send for FullComment
impl Sync for FullComment
impl Unpin for FullComment
impl UnwindSafe for FullComment
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