Arc macro
Creates an asynchronous function that takes a closure with parameters and executes it asynchronously.
A macro to create a new BTreeMap
, providing two usage options:
Creates a new BTreeSet<T>
.
Creates a new BinaryHeap<T>
.
Creates a new Box
instance.
Creates a new Cell
instance.
The clone!
macro automatically clones the variables passed to it and immediately executes the closure.
Creates a new HashMap
instance.
Creates a new HashSet
instance.
Combines multiple paths into a single valid path, handling overlapping slashes.
Creates a new LinkedList
instance.
Creates a new Mutex
instance.
Output macro
Creates a new Rc
(Reference Counted) instance.
Creates a new RefCell
instance.
Creates a new RwLock
instance.
Creates a new String
instance.
Creates a new Vec
instance.
Creates a new VecDeque
instance.
A thread-safe reference-counting pointer. ‘Arc’ stands for ‘Atomically
Reference Counted’.
An ordered map based on a
B-Tree.
An ordered set based on a B-Tree.
A priority queue implemented with a binary heap.
A pointer type that uniquely owns a heap allocation of type T
.
A mutable memory location.
A
hash map implemented with quadratic probing and SIMD lookup.
A
hash set implemented as a
HashMap
where the value is
()
.
An owned permission to join on a thread (block on its termination).
A doubly-linked list with owned nodes.
A mutual exclusion primitive useful for protecting shared data
An RAII implementation of a “scoped lock” of a mutex. When this structure is
dropped (falls out of scope), the lock will be unlocked.
Output struct
OutputBuilder struct
OutputList struct
OutputListBuilder struct
An owned, mutable path (akin to
String
).
A single-threaded reference-counting pointer. ‘Rc’ stands for ‘Reference
Counted’.
A mutable memory location with dynamically checked borrow rules
A reader-writer lock
A double-ended queue implemented with a growable ring buffer.
Asynchronously copies all files from the source directory to the destination directory.
Asynchronously copies a file from the source path to the destination path.
Asynchronously deletes a directory and all its contents.
Asynchronously deletes a file at the given path.
Retrieves the size of a file at the specified file_path
in bytes.
Moves a directory and all its contents to another location asynchronously.
Moves a file from the source path to the destination path asynchronously.
Reads the content of a file at the specified file_path
and converts it to the type T
.
The conversion is done by using the From<Vec<u8>>
trait, which allows the file content
(read as raw bytes) to be converted into a type T
.
Spawns a new thread to run the provided function function
in a recoverable manner.
If the function function
panics during execution, the panic will be caught, and the thread
will terminate without crashing the entire program.
Spawns a recoverable function with an error-handling function in a new thread.
Spawns an asynchronous recoverable function, catches any errors with an error-handling function,
and ensures that a final function is always executed, regardless of whether an error occurred.
Executes an error-handling function with a given error message within a panic-safe context.
Executes a recoverable function within a panic-safe context.
Writes the provided content to a file at the specified file_path
asynchronously.
Copies all files from the source directory to the destination directory.
Copies a file from the source path to the destination path.
Gets the current day, without the time.
Gets the current time, including the date and time.
Deletes a directory and all its contents.
Deletes a file at the given path.
Retrieves the size of a file at the specified file_path
in bytes.
Moves a directory and all its contents to another location.
Moves a file from the source path to the destination path.
Output
Reads the content of a file at the specified file_path
and converts it to the type T
.
The conversion is done by using the From<Vec<u8>>
trait, which allows the file content
(read as raw bytes) to be converted into a type T
.
Spawns a new thread to run the provided function function
in a recoverable manner.
If the function function
panics during execution, the panic will be caught, and the thread
will terminate without crashing the entire program.
Spawns a recoverable function with an error-handling function in a new thread.
Executes an error-handling function with a given error message within a panic-safe context.
Executes a recoverable function within a panic-safe context.
Converts a panic-captured error value into a string.
Converts a panic-captured error value into a string.
Writes the provided content to a file at the specified file_path
.
If the file does not exist, it will be created. If the file exists, the content will be appended to it.