Struct rust_utils::linux::ManpageBuilder
source · pub struct ManpageBuilder { /* private fields */ }
Expand description
Basic unix manpage generator
Implementations§
source§impl ManpageBuilder
impl ManpageBuilder
pub fn name(self, name: String) -> Self
pub fn short_desc(self, short_desc: String) -> Self
pub fn desc(self, desc: String) -> Self
sourcepub fn name_comment(self, name_comment: impl Into<String>) -> Self
pub fn name_comment(self, name_comment: impl Into<String>) -> Self
Add in a comment next to the name in the file comment
pub fn other_pages(self, other_pages: Vec<String>) -> Self
pub fn other_sections(self, other_sections: HashMap<String, String>) -> Self
source§impl ManpageBuilder
impl ManpageBuilder
sourcepub fn new(
name: &str,
short_desc: &str,
author_name: &str,
author_email: &str,
desc: &str,
) -> Self
pub fn new( name: &str, short_desc: &str, author_name: &str, author_email: &str, desc: &str, ) -> Self
Create a new ManpageBuilder
sourcepub fn other_page(self, name: &str) -> Self
pub fn other_page(self, name: &str) -> Self
Add a link to a page in the “SEE ALSO” section
Auto Trait Implementations§
impl Freeze for ManpageBuilder
impl RefUnwindSafe for ManpageBuilder
impl Send for ManpageBuilder
impl Sync for ManpageBuilder
impl Unpin for ManpageBuilder
impl UnwindSafe for ManpageBuilder
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