pub struct Brief { /* private fields */ }Expand description
Like Comment, but single-line.
Implementations
sourceimpl Brief
impl Brief
sourcepub fn link<S: ToString>(self, text: S, path: PathBuf) -> Self
pub fn link<S: ToString>(self, text: S, path: PathBuf) -> Self
Adds a piece of text to the comment that links to the given path.
sourcepub fn url<S: ToString, U: ToString>(self, text: S, url: U) -> Self
pub fn url<S: ToString, U: ToString>(self, text: S, url: U) -> Self
Adds a piece of text to the comment that links to the given URL.
Trait Implementations
impl StructuralPartialEq for Brief
Auto Trait Implementations
impl RefUnwindSafe for Brief
impl Send for Brief
impl Sync for Brief
impl Unpin for Brief
impl UnwindSafe for Brief
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more