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.
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§

DisplayPath
Extension trait to display a path.
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.