Struct okane_core::repl::TopLevelComment
source · 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>
§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§fn eq(&self, other: &TopLevelComment<'i>) -> bool
fn eq(&self, other: &TopLevelComment<'i>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.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