Struct jemalloc_ctl::arenas::NArenas[][src]

pub struct NArenas(_);

A type providing access to the current limit on the number of arenas.

Examples

extern crate jemallocator;
extern crate jemalloc_ctl;

use jemalloc_ctl::arenas::NArenas;

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

fn main() {
    let narenas = NArenas::new().unwrap();

    println!("number of arenas: {}", narenas.get().unwrap());
}

Methods

impl NArenas
[src]

Returns a new NArenas.

Returns the maximum number of arenas.

Trait Implementations

impl Copy for NArenas
[src]

impl Clone for NArenas
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for NArenas

impl Sync for NArenas