pub struct ErrorCodeFormatterVal(/* private fields */);
Expand description
A wrapped ErrorCodeFormatter
value.
This is returned from the ErrorCodeFormatter
function itself as a workaround,
because function type definitions cannot reference themselves. The contained function
is actually also a ErrorCodeFormatter
value.
Implementations§
Source§impl ErrorCodeFormatterVal
impl ErrorCodeFormatterVal
Sourcepub fn new(func: ErrorCodeFormatter) -> ErrorCodeFormatterVal
pub fn new(func: ErrorCodeFormatter) -> ErrorCodeFormatterVal
Create a new wrapped ErrorCodeFormatter
value from func
.
Sourcepub fn into(self) -> ErrorCodeFormatter
pub fn into(self) -> ErrorCodeFormatter
Unwrap the wrapped ErrorCodeFormatter
value.
Auto Trait Implementations§
impl Freeze for ErrorCodeFormatterVal
impl RefUnwindSafe for ErrorCodeFormatterVal
impl Send for ErrorCodeFormatterVal
impl Sync for ErrorCodeFormatterVal
impl Unpin for ErrorCodeFormatterVal
impl UnwindSafe for ErrorCodeFormatterVal
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