pub struct FormatDone(/* private fields */);Expand description
A token showing that formatting completed successfully.
This is an opaque struct instead of a simple alias to (), to prevent users
from creating it without understanding the implications of doing so. It is
usually incorrect to create this token yourself.
Implementations§
Source§impl FormatDone
impl FormatDone
Sourcepub const fn assert() -> Self
pub const fn assert() -> Self
Manually assert that formatting is complete.
It is not recommended to call this yourself; a FormatDone will be
provided to you by the primitive formatting methods, as well as
FieldFormatter::finish().
Auto Trait Implementations§
impl Forget for FormatDone
impl Freeze for FormatDone
impl RefUnwindSafe for FormatDone
impl Send for FormatDone
impl Sync for FormatDone
impl Unpin for FormatDone
impl UnsafeUnpin for FormatDone
impl UnwindSafe for FormatDone
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