Skip to main content

FromArc

Trait FromArc 

Source
pub trait FromArc<T> {
    // Required method
    fn from_arc(arc: Arc<T>) -> Self;
}
Expand description

A trait for converting an Arc<T> into Self.

Required Methods§

Source

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

Converts an Arc<T> into Self.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<S, T> FromArc<S> for T
where Arc<S>: Into<T>,