pub struct FormatterConst<'a> {
pub bind_power: BindPowerPair,
pub outputs: [Option<SubFormatterConst<'a>>; 64],
}
Fields§
§bind_power: BindPowerPair
How strongly does the formatter bind its output from the left? Bracketed
outputs generally have a higher binding power than non-bracketed ones.
For example { ... }
can have a higher binding power, while ... + ...
would typically have a lower binding power.
outputs: [Option<SubFormatterConst<'a>>; 64]
The formatter’s output
Implementations§
Source§impl<'a> FormatterConst<'a>
impl<'a> FormatterConst<'a>
Sourcepub const fn max_capture(&self) -> Option<NonMaxU32>
pub const fn max_capture(&self) -> Option<NonMaxU32>
Shallow max capture calculation.
Source§impl<'a> FormatterConst<'a>
impl<'a> FormatterConst<'a>
pub const fn parse(full: &'a str) -> ResultFormatterConst<'a, Self>
Trait Implementations§
Source§impl<'a> Debug for FormatterConst<'a>
impl<'a> Debug for FormatterConst<'a>
Source§impl TryFrom<FormatterConst<'_>> for Formatter
impl TryFrom<FormatterConst<'_>> for Formatter
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 FormatterConst<'a>
impl<'a> RefUnwindSafe for FormatterConst<'a>
impl<'a> Send for FormatterConst<'a>
impl<'a> Sync for FormatterConst<'a>
impl<'a> Unpin for FormatterConst<'a>
impl<'a> UnwindSafe for FormatterConst<'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