StandardOut structv0.1.0
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
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.
| Name | Type | Description |
|---|---|---|
bytes | char8[..] | the bytes to write |
Returns: how many bytes were taken
Flush
pub func Flush(self: &var StandardOut) -> ! IoError
Nothing: these writes hold nothing back.
Returns: success, since everything written already reached the system