[−][src]Module fungus::prelude
Import all the modules in a consumable way
Examples
use fungus::prelude::*; let home = env::var("HOME").unwrap(); assert_eq!(PathBuf::from(&home), sys::abs("~").unwrap());
Re-exports
pub use super::arch::*; |
pub use super::core::*; |
pub use super::enc; |
pub use super::net; |
pub use super::net::agent; |
pub use super::sys; |
pub use super::sys::exec; |
pub use super::sys::ext::*; |
pub use super::sys::user; |
pub use super::cfgblock; |
pub use super::fatal; |
pub use chrono; |
pub use log; |
Modules
control | A couple of functions to enable and disable coloring. |
env | Inspection and manipulation of the process's environment. |
fmt | Utilities for formatting and printing |
fs | Filesystem manipulation operations. |
io | Traits, helpers, and type definitions for core I/O functionality. |
str | Unicode string slices. |
Macros
env | Inspects an environment variable at compile time. |
lazy_static | |
log | The standard logging macro. |
Structs
BufReader | The |
ColoredString | A string that may have color and/or style applied to it. |
File | A reference to an open file on the filesystem. |
HashMap | A hash map implemented with quadratic probing and SIMD lookup. |
OpenOptions | Options and flags which can be used to configure how a file is opened. |
OsStr | Borrowed reference to an OS string (see |
Path | A slice of a path (akin to |
PathBuf | An owned, mutable path (akin to |
Regex | A compiled regular expression for matching Unicode strings. |
Style | A combinatorial style such as bold, italics, dimmed, etc. |
Enums
Color | The 8 standard colors. |
Component | A single component of a path. |
Styles |
Traits
BufRead | A |
Colorize | The trait that enables something to be given color. |
LazyStatic | Support trait for enabling a few common operation on lazy static values. |
MetadataExt | Unix-specific extensions to |
PermissionsExt | Unix-specific extensions to |
Read | The |
Seek | The |
Write | A trait for objects which are byte-oriented sinks. |
__Deref | Used for immutable dereferencing operations, like |
Functions
initialize | Takes a shared reference to a lazy static and initializes it if it has not been already. |