[−][src]Struct weld::runtime::WeldRuntimeContext
Maintains information about a single Weld run.
Methods
impl WeldRuntimeContext
[src]
pub fn new(nworkers: i32, memlimit: i64) -> WeldRuntimeContext
[src]
Construct a new WeldRuntimeContext
.
pub unsafe fn free(&mut self, pointer: Ptr)
[src]
Free an allocated data value.
Panics if the passed value was not allocated by the Weld runtime.
pub fn memory_usage(&self) -> i64
[src]
Returns the number of bytes allocated by this Weld run.
pub fn run_id(&self) -> i64
[src]
Returns a 64-bit ID identifying this run.
pub fn threads(&self) -> i32
[src]
Returns the number of worker threads set for this run.
pub fn memory_limit(&self) -> i64
[src]
Returns the memory limit of this run.
Trait Implementations
impl Debug for WeldRuntimeContext
[src]
impl Drop for WeldRuntimeContext
[src]
impl PartialEq<WeldRuntimeContext> for WeldRuntimeContext
[src]
fn eq(&self, other: &WeldRuntimeContext) -> bool
[src]
fn ne(&self, other: &WeldRuntimeContext) -> bool
[src]
impl StructuralPartialEq for WeldRuntimeContext
[src]
Auto Trait Implementations
impl RefUnwindSafe for WeldRuntimeContext
impl !Send for WeldRuntimeContext
impl !Sync for WeldRuntimeContext
impl Unpin for WeldRuntimeContext
impl UnwindSafe for WeldRuntimeContext
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,