Enum rug::float::FreeCache[][src]

pub enum FreeCache {
    Local,
    Global,
    All,
    // some variants omitted
}

Specifies which cache to free.

Examples

use rug::float::{self, FreeCache};
use std::thread;

fn main() {
    let child = thread::spawn(move || {
        // some work here that uses Float
        float::free_cache(FreeCache::Local);
    });
    // some work here
    child.join().expect("couldn't join thread");
    float::free_cache(FreeCache::All);
}

Variants

Local

Free caches local to the current thread.

Global

Free caches shared by all threads.

All

Free both local and global caches.

Trait Implementations

impl Clone for FreeCache[src]

impl Copy for FreeCache[src]

impl Debug for FreeCache[src]

impl Eq for FreeCache[src]

impl Hash for FreeCache[src]

impl Ord for FreeCache[src]

impl PartialEq<FreeCache> for FreeCache[src]

impl PartialOrd<FreeCache> for FreeCache[src]

impl StructuralEq for FreeCache[src]

impl StructuralPartialEq for FreeCache[src]

Auto Trait Implementations

impl RefUnwindSafe for FreeCache

impl Send for FreeCache

impl Sync for FreeCache

impl Unpin for FreeCache

impl UnwindSafe for FreeCache

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Az for T[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CheckedAs for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> OverflowingAs for T[src]

impl<T> SaturatingAs for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> UnwrappedAs for T[src]

impl<T> WrappingAs for T[src]