Struct timespan::DelayedFormat
source · pub struct DelayedFormat<'a, T> {
pub span: Span<T>,
pub fmt: &'a str,
pub start: &'a str,
pub end: &'a str,
}
Expand description
An instance of this type gets created when issuing a format
on a span.
In theory this approach for formatting reduces the amount of memory used but the implementation is currently using more memory than it should.
Therefore this only eases the handling when formatting spans with a custom format string.
Fields
span: Span<T>
fmt: &'a str
start: &'a str
end: &'a str
Trait Implementations
sourceimpl<'a, T> Display for DelayedFormat<'a, T>where
T: Spanable + Formatable,
impl<'a, T> Display for DelayedFormat<'a, T>where
T: Spanable + Formatable,
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for DelayedFormat<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for DelayedFormat<'a, T>where
T: Send,
impl<'a, T> Sync for DelayedFormat<'a, T>where
T: Sync,
impl<'a, T> Unpin for DelayedFormat<'a, T>where
T: Unpin,
impl<'a, T> UnwindSafe for DelayedFormat<'a, T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more