pub struct TopLevelComment<'i>(pub Cow<'i, str>);
Expand description
Top-level comment. OK to have multi-line comment.
Tuple Fields§
§0: Cow<'i, str>
Trait Implementations§
Source§impl<'i> Debug for TopLevelComment<'i>
impl<'i> Debug for TopLevelComment<'i>
Source§impl Display for TopLevelComment<'_>
impl Display for TopLevelComment<'_>
Source§impl<'i> IntoBoundedStatic for TopLevelComment<'i>
impl<'i> IntoBoundedStatic for TopLevelComment<'i>
Source§type Static = TopLevelComment<'static>
type Static = TopLevelComment<'static>
The target type is bounded by the
'static
lifetime.Source§fn into_static(self) -> Self::Static
fn into_static(self) -> Self::Static
Convert an owned
T
into an owned T
such that T: 'static
.Source§impl<'i> PartialEq for TopLevelComment<'i>
impl<'i> PartialEq for TopLevelComment<'i>
Source§impl<'i> ToBoundedStatic for TopLevelComment<'i>
impl<'i> ToBoundedStatic for TopLevelComment<'i>
impl<'i> Eq for TopLevelComment<'i>
impl<'i> StructuralPartialEq for TopLevelComment<'i>
Auto Trait Implementations§
impl<'i> Freeze for TopLevelComment<'i>
impl<'i> RefUnwindSafe for TopLevelComment<'i>
impl<'i> Send for TopLevelComment<'i>
impl<'i> Sync for TopLevelComment<'i>
impl<'i> Unpin for TopLevelComment<'i>
impl<'i> UnwindSafe for TopLevelComment<'i>
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