Struct servo_arc::ThinArc
[−]
[src]
pub struct ThinArc<H: 'static, T: 'static> { /* fields omitted */ }
Methods
impl<H: 'static, T: 'static> ThinArc<H, T>
[src]
pub fn with_arc<F, U>(&self, f: F) -> U where
F: FnOnce(&Arc<HeaderSlice<HeaderWithLength<H>, [T]>>) -> U,
[src]
F: FnOnce(&Arc<HeaderSlice<HeaderWithLength<H>, [T]>>) -> U,
Temporarily converts |self| into a bonafide Arc and exposes it to the provided callback. The refcount is not modified.
pub fn heap_ptr(&self) -> *const c_void
[src]
Returns the address on the heap of the ThinArc itself -- not the T within it -- for memory reporting.
Trait Implementations
impl<H: Sync + Send, T: Sync + Send> Send for ThinArc<H, T>
[src]
impl<H: Sync + Send, T: Sync + Send> Sync for ThinArc<H, T>
[src]
impl<H, T> Deref for ThinArc<H, T>
[src]
type Target = HeaderSlice<HeaderWithLength<H>, [T]>
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
Dereferences the value.
impl<H: 'static, T: 'static> Clone for ThinArc<H, T>
[src]
fn clone(&self) -> Self
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<H: 'static, T: 'static> Drop for ThinArc<H, T>
[src]
impl<H: PartialEq + 'static, T: PartialEq + 'static> PartialEq for ThinArc<H, T>
[src]
fn eq(&self, other: &ThinArc<H, T>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.