Struct servo_arc::Arc [] [src]

#[repr(C)]
pub struct Arc<T: ?Sized + 'static> { /* fields omitted */ }

Methods

impl<T> Arc<T>
[src]

[src]

[src]

[src]

Produce a pointer to the data that can be converted back to an arc

[src]

Temporarily converts |self| into a bonafide RawOffsetArc and exposes it to the provided callback. The refcount is not modified.

[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]

[src]

impl<T: Clone> Arc<T>
[src]

[src]

impl<T: ?Sized> Arc<T>
[src]

[src]

[src]

impl<H, T> Arc<HeaderSlice<H, [T]>>
[src]

[src]

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]

[src]

Converts an Arc into a ThinArc. This consumes the Arc, so the refcount is not modified.

[src]

Converts a ThinArc into an Arc. This consumes the ThinArc, so the refcount is not modified.

impl<T: 'static> Arc<T>
[src]

[src]

Converts an Arc into a RawOffsetArc. This consumes the Arc, so the refcount is not modified.

[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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: ?Sized> Deref for Arc<T>
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

impl<T: ?Sized> Drop for Arc<T>
[src]

[src]

Executes the destructor for this type. Read more

impl<T: ?Sized + PartialEq> PartialEq for Arc<T>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<T: ?Sized + PartialOrd> PartialOrd for Arc<T>
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

[src]

This method tests less than (for self and other) and is used by the < operator. Read more

[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

[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]

[src]

This method returns an Ordering between self and other. Read more

1.22.0
[src]

Compares and returns the maximum of two values. Read more

1.22.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]

[src]

Formats the value using the given formatter. Read more

impl<T: ?Sized + Debug> Debug for Arc<T>
[src]

[src]

Formats the value using the given formatter.

impl<T: ?Sized> Pointer for Arc<T>
[src]

[src]

Formats the value using the given formatter.

impl<T: Default> Default for Arc<T>
[src]

[src]

Returns the "default value" for a type. Read more

impl<T: ?Sized + Hash> Hash for Arc<T>
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

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

[src]

Performs the conversion.

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

[src]

Immutably borrows from an owned value. Read more

impl<T: ?Sized> AsRef<T> for Arc<T>
[src]

[src]

Performs the conversion.

impl<T: ?Sized> StableDeref for Arc<T>
[src]

impl<T: ?Sized> CloneStableDeref for Arc<T>
[src]