pub struct BranchFormatter;
Expand description
Formatter for branch operations
Implementations§
Source§impl BranchFormatter
impl BranchFormatter
pub fn new() -> Self
Sourcepub fn format_creation_result(&self, result: &BranchCreationResult) -> String
pub fn format_creation_result(&self, result: &BranchCreationResult) -> String
Format branch creation result
Sourcepub fn format_clean_result(&self, result: &CleanBranchesResult) -> String
pub fn format_clean_result(&self, result: &CleanBranchesResult) -> String
Format clean branches result
Sourcepub fn format_switch_result(&self, result: &BranchSwitchResult) -> String
pub fn format_switch_result(&self, result: &BranchSwitchResult) -> String
Format branch switch result
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BranchFormatter
impl RefUnwindSafe for BranchFormatter
impl Send for BranchFormatter
impl Sync for BranchFormatter
impl Unpin for BranchFormatter
impl UnwindSafe for BranchFormatter
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