pub enum SubFormatterConst<'a> {
String(SubFormatterString<'a>),
Single(SubFormatterSingle),
Repeat(SubFormatterRepeatConst<'a>),
Capture(NonMaxU32),
}
Variants§
String(SubFormatterString<'a>)
A simple string output, will be printed literally.
Single(SubFormatterSingle)
Repeat(SubFormatterRepeatConst<'a>)
Capture(NonMaxU32)
Implementations§
Source§impl<'a> SubFormatterConst<'a>
impl<'a> SubFormatterConst<'a>
pub const fn parse_control( s: &'a str, ) -> ResultFormatterConst<'a, (Self, &'a str)>
pub const fn parse_one( s: &'a str, ) -> ResultFormatterConst<'a, (Option<SubFormatterString<'a>>, Option<(SubFormatterConst<'a>, &'a str)>)>
Trait Implementations§
Source§impl<'a> Debug for SubFormatterConst<'a>
impl<'a> Debug for SubFormatterConst<'a>
Source§impl TryFrom<SubFormatterConst<'_>> for SubFormatter
impl TryFrom<SubFormatterConst<'_>> for SubFormatter
Source§type Error = ParseError<FormatterError>
type Error = ParseError<FormatterError>
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl<'a> Freeze for SubFormatterConst<'a>
impl<'a> RefUnwindSafe for SubFormatterConst<'a>
impl<'a> Send for SubFormatterConst<'a>
impl<'a> Sync for SubFormatterConst<'a>
impl<'a> Unpin for SubFormatterConst<'a>
impl<'a> UnwindSafe for SubFormatterConst<'a>
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