Skip to main content

Arc

Struct Arc 

Source
pub struct Arc<T>(/* private fields */);
Expand description

Transparent wrapper for Arc<T> smart pointer that can be borrowed as an ArcRef<T>.

Trait Implementations§

Source§

impl<T> Borrow<ArcRef<T>> for Arc<T>

Source§

fn borrow(&self) -> &ArcRef<T>

Immutably borrows from an owned value. Read more
Source§

impl<T: Debug> Debug for Arc<T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> Deref for Arc<T>

Source§

type Target = Arc<T>

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl<T> From<Arc<T>> for Arc<T>

Source§

fn from(arc: Arc<T>) -> Self

Converts to this type from the input type.
Source§

impl<T> From<Arc<T>> for Arc<T>

Source§

fn from(Arc: Arc<T>) -> Self

Converts to this type from the input type.
Source§

impl<T: Sized> Value for Arc<T>

Source§

const INDIRECT: bool = true

Whether this is an indirect value (otherwise it is inline).
Source§

type Borrowed = ArcRef<T>

We need this extra layer of indirection relative to SequentialMap because edges can be concurrently modified. Read more
Source§

type Guard<G> = G where G: Guard<Self>

This is a type-level function that allows inline values to discard a smr::Guard.
Source§

unsafe fn borrow_from_raw_unchecked(raw: &u64) -> &Self::Borrowed

Safety Read more
Source§

impl<T: Sized> Value for Arc<T>

Source§

fn into_raw(self) -> u64

Erase the type of this value, returning a u64.
Source§

unsafe fn from_raw_unchecked(raw: u64) -> Self

Safety Read more

Auto Trait Implementations§

§

impl<T> Freeze for Arc<T>

§

impl<T> RefUnwindSafe for Arc<T>
where T: RefUnwindSafe,

§

impl<T> Send for Arc<T>
where T: Sync + Send,

§

impl<T> Sync for Arc<T>
where T: Sync + Send,

§

impl<T> Unpin for Arc<T>

§

impl<T> UnsafeUnpin for Arc<T>

§

impl<T> UnwindSafe for Arc<T>
where T: RefUnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T, S> SimdFrom<T, S> for T
where S: Simd,

Source§

fn simd_from(_simd: S, value: T) -> T

Source§

impl<F, T, S> SimdInto<T, S> for F
where T: SimdFrom<F, S>, S: Simd,

Source§

fn simd_into(self, simd: S) -> T

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.