The std::fmt docs currently say about the write! macro:
Under the hood, this function is actually invoking the write function defined in this module.
But in fact, write! is defined as calling the write_fmt method on its argument, as per its documentation.