Crate ts_io

Crate ts_io 

Source
Expand description

§ts-io

Structs§

Base64Url
Bytes that (de)serialize to unpadded base64url.
Cursor
A simple cursor over a slice.
ItemFormatter
A wrapper struct to display a collections items.
OutOfBounds
A read would take the cursor out of bounds.

Enums§

ChildCommandError
Error variants for using a child command.
FileError
Error variants for interacting with a file.

Traits§

AsItemFormatter
Trait to interpret a collection as an item formatter.
DisplayPath
Extension trait to display a path.
Iterable
Trait to mark a struct as iterable over Item.
NormalizePath
Extension trait to call [crate::normalize_path] on a path.
RelativePath
Extension trait to get the relative path.

Functions§

ensure_is_file
Return Ok(()) if a path points to a file.
process_using_child
Write data to a child process’ stdin, and return the process’ stdout.
read_file
Read a file, returning presentable error variants.
read_file_to_string
Read a file to a string, returning presentable error variants.