Module midly::io

source ·
Expand description

Provides abstractions over writers, even in no_std environments.

When the std feature is enabled, IoWrap and SeekableWrap provide a bridge between the std::io API and the midly::io API. Besides, write methods that work with midly::io::Write types usually provide a write_std variant that works with std::io::Write types when the std feature is enabled.

Structs

A seekable writer over an in-memory buffer.
Bridge between a midly::io::Write type and a std::io::Write type.
The type used for the Seekable associated type on non-seekable writers.
Bridge between a midly::io::{Write, Seek} type and a std::io::{Write, Seek} type.

Enums

The errors that can arise when writing to an in-memory buffer.

Traits

A Seek trait available even in no_std environments.
A Write trait available even in no_std environments, and with per-type errors.

Type Definitions

Either Ok(()) or the error specific to the W writer.