Struct jemalloc_ctl::Version[][src]

pub struct Version(_);

A type providing access to the jemalloc version string.

Example

extern crate jemallocator;
extern crate jemalloc_ctl;

use jemalloc_ctl::Version;

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

fn main() {
    let version = Version::new().unwrap();

    println!("jemalloc version {}", version.get().unwrap());
}

Methods

impl Version
[src]

Returns a new Version.

Returns the jemalloc version string.

Trait Implementations

impl Copy for Version
[src]

impl Clone for Version
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Version

impl Sync for Version