pub struct Excess<'a, Value, PadBlock = char>{
pub value: &'a Value,
pub pad_block: &'a PadBlock,
pub value_width: usize,
pub total_width: usize,
}Expand description
Information about a situation where total_width is less than value.width().
This information is to be passed to an excess handler.
Fields§
§value: &'a ValueThe value the caused the excess.
pad_block: &'a PadBlockThe block that was used for the pad.
value_width: usizeThe width of the value that caused the excess.
total_width: usizeThe total width that was exceeded by the value.
Trait Implementations§
impl<'a, Value, PadBlock> Copy for Excess<'a, Value, PadBlock>
Auto Trait Implementations§
impl<'a, Value, PadBlock> Freeze for Excess<'a, Value, PadBlock>
impl<'a, Value, PadBlock> RefUnwindSafe for Excess<'a, Value, PadBlock>where
Value: RefUnwindSafe,
PadBlock: RefUnwindSafe,
impl<'a, Value, PadBlock> Send for Excess<'a, Value, PadBlock>
impl<'a, Value, PadBlock> Sync for Excess<'a, Value, PadBlock>
impl<'a, Value, PadBlock> Unpin for Excess<'a, Value, PadBlock>
impl<'a, Value, PadBlock> UnwindSafe for Excess<'a, Value, PadBlock>where
Value: RefUnwindSafe,
PadBlock: RefUnwindSafe,
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<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