AnySyncClone

Trait AnySyncClone 

Source
pub trait AnySyncClone:
    Any
    + Sync
    + Clone { }
Expand description

Represents a type that can be dynamically downcast, is safe to share across threads, and can be cloned.

This trait combines the capabilities of Any, Sync, and Clone, ensuring that types implementing it can be safely shared across thread boundaries and can be cloned.

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.

Implementors§

Source§

impl<T: Any + Sync + Clone> AnySyncClone for T

Implements AnySyncClone for types that are Any, Sync, and Clone.

This trait signifies that a type can be safely accessed concurrently and cloned.