data IoError
File system / OS error (std.io, std.os).
Example:
use std.io { File }
fn main() io {
match File.readText("/definitely/not/here.txt") {
str t => print(t)
IoError e => print("{e.kind == IoErrorKind.NotFound}")
}
}Вывод
true
@error pub(api) data IoErrorС версии. 1.0.0-beta
Поля
pub(api) kind: IoErrorKind | What went wrong. |
pub(api) msg: str | Detail text: |
Определено в: std/core/types.oxl:1415