pub struct FormatterUtils;
Expand description
Generic formatter utilities
Implementations§
Source§impl FormatterUtils
impl FormatterUtils
Sourcepub fn section_header(title: &str) -> String
pub fn section_header(title: &str) -> String
Create a section header
Sourcepub fn subsection_header(title: &str) -> String
pub fn subsection_header(title: &str) -> String
Create a subsection header
Sourcepub fn bullet_list(items: &[String], bullet: &str) -> String
pub fn bullet_list(items: &[String], bullet: &str) -> String
Format a list with bullets
Sourcepub fn numbered_list(items: &[String]) -> String
pub fn numbered_list(items: &[String]) -> String
Format a numbered list
Auto Trait Implementations§
impl Freeze for FormatterUtils
impl RefUnwindSafe for FormatterUtils
impl Send for FormatterUtils
impl Sync for FormatterUtils
impl Unpin for FormatterUtils
impl UnwindSafe for FormatterUtils
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more