Enum rug::float::FreeCache [−][src]
pub enum FreeCache { Local, Global, All, // some variants omitted }
Expand description
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
Free caches local to the current thread.
Free caches shared by all threads.
Free both local and global caches.
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for FreeCache
impl UnwindSafe for FreeCache
Blanket Implementations
Mutably borrows from an owned value. Read more
Casts the value.
Casts the value.
Casts the value.
Casts the value.
Casts the value.