[][src]Module fungus::prelude

All essential symbols in a simple consumable way

Examples

use fungus::prelude::*;

Re-exports

pub use super::cfgblock;
pub use super::core::*;
pub use super::defer;
pub use super::enc::gzip;
pub use super::enc::tar;
pub use super::errors::*;
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 blake2;
pub use libc;

Modules

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

lazy_static

Structs

BufReader

The BufReader<R> struct adds buffering to any reader.

ColorString

Wrapper around the String type to provide colors and styles.

File

A reference to an open file on the filesystem.

OpenOptions

Options and flags which can be used to configure how a file is opened.

OsStr

Borrowed reference to an OS string (see OsString).

OsString

A type that can represent owned, mutable platform-native strings, but is cheaply inter-convertible with Rust strings.

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.

Enums

Color

Color defines supported color types and provides static functions

Constants

TERM_COLOR

Environment variable name for enabling/disabling color

Traits

BufRead

A BufRead is a type of Reader which has an internal buffer, allowing it to perform extra ways of reading.

Colorable

Colorable defines a set of simple color functions for a given type

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.