pub enum Comment {
SingleLine(SmolStr),
MultiLine(SmolStr),
}Expand description
A comment.
Variants§
SingleLine(SmolStr)
-- single lineMultiLine(SmolStr)
--[[ multiline ]]
--[[
multiline
]]
--[==[
multiline
]==]Trait Implementations§
Source§impl Ord for Comment
impl Ord for Comment
Source§impl PartialOrd for Comment
impl PartialOrd for Comment
Source§impl Print for Comment
impl Print for Comment
Source§fn print_final_trivia(&self) -> String
fn print_final_trivia(&self) -> String
Prints only the very final trivia. Used for the default implementation of
Print::print, which just joins Print::print_without_final_trivia
and this function.Source§fn print_without_final_trivia(&self) -> String
fn print_without_final_trivia(&self) -> String
Prints the whole token including all surrounding trivia, excluding the
very last trailing trivia.
impl Eq for Comment
impl StructuralPartialEq for Comment
Auto Trait Implementations§
impl Freeze for Comment
impl RefUnwindSafe for Comment
impl Send for Comment
impl Sync for Comment
impl Unpin for Comment
impl UnwindSafe for Comment
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