Struct jemalloc_ctl::config::MallocConf[][src]

pub struct MallocConf(_);

A type providing access to the embedded configure-time-specified run-time options config.

The string will be empty unless --with-malloc-conf was specified during build configuration.

Examples

extern crate jemallocator;
extern crate jemalloc_ctl;

use jemalloc_ctl::config::MallocConf;

#[global_allocator]
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;

fn main() {
    let malloc_conf = MallocConf::new().unwrap();

    println!("default malloc conf: {}", malloc_conf.get().unwrap());
}

Methods

impl MallocConf
[src]

Returns a new MallocConf.

Returns the embedded configure-time-specified run-time options config.

Trait Implementations

impl Copy for MallocConf
[src]

impl Clone for MallocConf
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for MallocConf

impl Sync for MallocConf