pub struct Formatter {
pub bind_power: BindPowerPair,
pub outputs: Vec<SubFormatter>,
pub max_capture: Option<NonMaxU32>,
}Fields§
§bind_power: BindPowerPairHow 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: Vec<SubFormatter>The formatter’s output
max_capture: Option<NonMaxU32>The maximum value of any stored SubFormatter::Capture.
Implementations§
Source§impl Formatter
impl Formatter
pub fn calculate_max_capture(&mut self)
Trait Implementations§
Source§impl DeParseTrait for &Formatter
impl DeParseTrait for &Formatter
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.
impl Eq for Formatter
impl StructuralPartialEq for Formatter
Auto Trait Implementations§
impl Freeze for Formatter
impl RefUnwindSafe for Formatter
impl Send for Formatter
impl Sync for Formatter
impl Unpin for Formatter
impl UnwindSafe for Formatter
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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