pub struct Banner {
name: String,
start: Instant,
}Expand description
An open banner. Dropping it writes the finish frame, so an early ?
return still closes the run the way Python’s finally does.
Fields§
§name: String§start: InstantTrait Implementations§
Auto Trait Implementations§
impl Freeze for Banner
impl RefUnwindSafe for Banner
impl Send for Banner
impl Sync for Banner
impl Unpin for Banner
impl UnsafeUnpin for Banner
impl UnwindSafe for Banner
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