Struct servo_arc::Arc
[−]
[src]
#[repr(C)]pub struct Arc<T: ?Sized + 'static> { /* fields omitted */ }
Methods
impl<T> Arc<T>[src]
pub fn new(data: T) -> Self[src]
pub fn into_raw(this: Self) -> *const T[src]
pub fn borrow_arc<'a>(&'a self) -> ArcBorrow<'a, T>[src]
Produce a pointer to the data that can be converted back to an arc
pub fn with_raw_offset_arc<F, U>(&self, f: F) -> U where
F: FnOnce(&RawOffsetArc<T>) -> U, [src]
F: FnOnce(&RawOffsetArc<T>) -> U,
Temporarily converts |self| into a bonafide RawOffsetArc 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 Arc itself -- not the T within it -- for memory reporting.
impl<T: ?Sized> Arc<T>[src]
impl<T: Clone> Arc<T>[src]
impl<T: ?Sized> Arc<T>[src]
impl<H, T> Arc<HeaderSlice<H, [T]>>[src]
pub fn from_header_and_iter<I>(header: H, items: I) -> Self where
I: Iterator<Item = T> + ExactSizeIterator, [src]
I: Iterator<Item = T> + ExactSizeIterator,
Creates an Arc for a HeaderSlice using the given header struct and iterator to generate the slice. The resulting Arc will be fat.
impl<H: 'static, T: 'static> Arc<HeaderSlice<HeaderWithLength<H>, [T]>>[src]
pub fn into_thin(a: Self) -> ThinArc<H, T>[src]
Converts an Arc into a ThinArc. This consumes the Arc, so the refcount is not modified.
pub fn from_thin(a: ThinArc<H, T>) -> Self[src]
Converts a ThinArc into an Arc. This consumes the ThinArc, so the refcount is not modified.
impl<T: 'static> Arc<T>[src]
pub fn into_raw_offset(a: Self) -> RawOffsetArc<T>[src]
Converts an Arc into a RawOffsetArc. This consumes the Arc, so the refcount is not modified.
pub fn from_raw_offset(a: RawOffsetArc<T>) -> Self[src]
Converts a RawOffsetArc into an Arc. This consumes the RawOffsetArc, so the refcount is not modified.
Trait Implementations
impl<T: ?Sized + Sync + Send> Send for Arc<T>[src]
impl<T: ?Sized + Sync + Send> Sync for Arc<T>[src]
impl<T: ?Sized> Clone for Arc<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<T: ?Sized> Deref for Arc<T>[src]
type Target = T
The resulting type after dereferencing.
fn deref(&self) -> &T[src]
Dereferences the value.
impl<T: ?Sized> Drop for Arc<T>[src]
impl<T: ?Sized + PartialEq> PartialEq for Arc<T>[src]
fn eq(&self, other: &Arc<T>) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Arc<T>) -> bool[src]
This method tests for !=.
impl<T: ?Sized + PartialOrd> PartialOrd for Arc<T>[src]
fn partial_cmp(&self, other: &Arc<T>) -> Option<Ordering>[src]
This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Arc<T>) -> bool[src]
This method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Arc<T>) -> bool[src]
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Arc<T>) -> bool[src]
This method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Arc<T>) -> bool[src]
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl<T: ?Sized + Ord> Ord for Arc<T>[src]
fn cmp(&self, other: &Arc<T>) -> Ordering[src]
This method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
Compares and returns the minimum of two values. Read more
impl<T: ?Sized + Eq> Eq for Arc<T>[src]
impl<T: ?Sized + Display> Display for Arc<T>[src]
fn fmt(&self, f: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl<T: ?Sized + Debug> Debug for Arc<T>[src]
fn fmt(&self, f: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl<T: ?Sized> Pointer for Arc<T>[src]
impl<T: Default> Default for Arc<T>[src]
impl<T: ?Sized + Hash> Hash for Arc<T>[src]
fn hash<H: Hasher>(&self, state: &mut H)[src]
Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher]. Read more