Module prelude

Module prelude 

Source
Expand description

Wrapper module isolate std usage and enable no_std support

Modules§

consts
Constants associated with the current target
io
Traits, helpers, and type definitions for core I/O functionality.

Structs§

BufReader
The BufReader<R> struct adds buffering to any reader.
Cursor
A Cursor wraps an in-memory buffer and provides it with a Seek implementation.
File
An object providing access to an open file on the filesystem.
HashMap
A hash map implemented with quadratic probing and SIMD lookup.
OsStr
Borrowed reference to an OS string (see OsString).
Path
A slice of a path (akin to str).
PathBuf
An owned, mutable path (akin to String).
Permissions
Representation of the various permissions on a file.

Traits§

BufRead
A BufRead is a type of Reader which has an internal buffer, allowing it to perform extra ways of reading.
PermissionsExt
Unix-specific extensions to fs::Permissions.
Read
The Read trait allows for reading bytes from a source.
Seek
The Seek trait provides a cursor which can be moved within a stream of bytes.
Write
A trait for objects which are byte-oriented sinks.

Functions§

absolute
Makes the path absolute without accessing the filesystem.
canonicalize
Returns the canonical, absolute form of a path with all intermediate components normalized and symbolic links resolved.
copy
Copies the entire contents of a reader into a writer.
create_dir_all
Recursively create a directory and all of its parent components if they are missing.
exit
Terminates the current process with the specified exit code.
read
Reads the entire contents of a file into a bytes vector.
remove_file
Removes a file from the filesystem.
set_permissions
Changes the permissions found on a file or a directory.
vale_release_filename
Get Vale release filename for a given platform operating system (e.g., linux, windows, macos)
var
Fetches the environment variable key from the current process.