StandardOut structv0.1.0

Source
Standard output: a byte Writer whose encoding matches where the bytes land.
pub struct StandardOut {
    // private fields
}

Associated functions

Acquire

pub func Acquire() -> StandardOut

The process's standard output.

Returns: the stream, which the process owns for its whole life

Source

Implements Writer

StandardOut conforms to Writer.

Write

pub func Write(
    self: &var StandardOut,
    bytes: char8[..]
) -> uint ! IoError

Writes what it can of bytes to standard output.

NameTypeDescription
byteschar8[..]the bytes to write

Returns: how many bytes were taken

Source

Flush

pub func Flush(self: &var StandardOut) -> ! IoError

Nothing: these writes hold nothing back.

Returns: success, since everything written already reached the system

Source