Skip to main content

ArcExt

Trait ArcExt 

Source
pub trait ArcExt<T> {
    // Required method
    fn into_pair(self) -> (Arc<T>, Arc<T>);

    // Provided method
    fn pair(value: T) -> (Arc<T>, Arc<T>) { ... }
}

Required Methods§

Source

fn into_pair(self) -> (Arc<T>, Arc<T>)

Provided Methods§

Source

fn pair(value: T) -> (Arc<T>, Arc<T>)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T> ArcExt<T> for Arc<T>

Source§

fn into_pair(self) -> (Arc<T>, Arc<T>)

Implementors§