pub struct AdHocFull<F>where
F: FnMut(&[String], &[String], &[String], &[char], &HashMap<String, String>) -> Result<String, SingleFmtError>,{ /* private fields */ }
Expand description
A wrapper over a closure with the same signature as the format
method on
Fmt
.
The closure doesn’t have to be Fn
, it can be FnMut
.
Implementations
Trait Implementations
sourceimpl<F> Fmt for AdHocFull<F>where
F: FnMut(&[String], &[String], &[String], &[char], &HashMap<String, String>) -> Result<String, SingleFmtError>,
impl<F> Fmt for AdHocFull<F>where
F: FnMut(&[String], &[String], &[String], &[char], &HashMap<String, String>) -> Result<String, SingleFmtError>,
sourcefn format(
&self,
full_name: &[String],
name: &[String],
args: &[String],
flags: &[char],
options: &HashMap<String, String>
) -> Result<String, SingleFmtError>
fn format(
&self,
full_name: &[String],
name: &[String],
args: &[String],
flags: &[char],
options: &HashMap<String, String>
) -> Result<String, SingleFmtError>
Perform the formatting of a single placeholder. Placeholder’s full
name, name segments of child format units, arguments, flags and options
will be passed to this method. Read more
Auto Trait Implementations
impl<F> !RefUnwindSafe for AdHocFull<F>
impl<F> Send for AdHocFull<F>where
F: Send,
impl<F> !Sync for AdHocFull<F>
impl<F> Unpin for AdHocFull<F>where
F: Unpin,
impl<F> UnwindSafe for AdHocFull<F>where
F: 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