[][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 Strings.

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 BufReader<R> struct adds buffering to any reader.

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 OsString).

Path

A slice of a path (akin to str).

PathBuf

An owned, mutable path (akin to String).

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 BufRead is a type of Reader which has an internal buffer, allowing it to perform extra ways of reading.

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 fs::Metadata.

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.

__Deref

Used for immutable dereferencing operations, like *v.

Functions

initialize

Takes a shared reference to a lazy static and initializes it if it has not been already.