Function jemalloc_ctl::version[][src]

pub fn version() -> Result<&'static str>

Returns the jemalloc version string.

Note

The version of jemalloc currently shipped with the Rust distribution has a bogus version string.

Example

extern crate jemallocator;
extern crate jemalloc_ctl;

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

fn main() {
    println!("jemalloc version {}", jemalloc_ctl::version().unwrap());
}