pub struct Docstring(pub String);Expand description
Represents consecutive comment lines starting with ///, joined by \n.
Tuple Fields§
§0: StringTrait Implementations§
impl Eq for Docstring
Source§impl Ord for Docstring
impl Ord for Docstring
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Docstring
impl PartialOrd for Docstring
impl StructuralPartialEq for Docstring
Auto Trait Implementations§
impl Freeze for Docstring
impl RefUnwindSafe for Docstring
impl Send for Docstring
impl Sync for Docstring
impl Unpin for Docstring
impl UnsafeUnpin for Docstring
impl UnwindSafe for Docstring
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