Derive Macro Write

Source
#[derive(Write)]
{
    // Attributes available to this derive:
    #[write]
}
Expand description

#[derive(Write)]

Derives std::io::Write for the given struct.

Supported attributes:

  • #[write]: Marks the field as a write stream.
  • #[write(as_ref)]: Delegates the field to the inner type using AsRef/AsMut.
  • #[write(deref)]: Delegates the field to the inner type using AsRef/AsMut.
  • #[write(<function>=<override>)]: Overrides the default <function> method with the given override function.