Trait Claim

Source
pub trait Claim: Clone { }
Expand description

A marker trait for infallible cloneable objects. Only implement this for your type if you can guarantee that cloning it is guaranteed not to panic.

For details on the idea, read the Claiming, auto and otherwise blog post.

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 Claim for Infallible

Source§

impl Claim for bool

Source§

impl Claim for char

Source§

impl Claim for f32

Source§

impl Claim for f64

Source§

impl Claim for i8

Source§

impl Claim for i16

Source§

impl Claim for i32

Source§

impl Claim for i64

Source§

impl Claim for i128

Source§

impl Claim for isize

Source§

impl Claim for u8

Source§

impl Claim for u16

Source§

impl Claim for u32

Source§

impl Claim for u64

Source§

impl Claim for u128

Source§

impl Claim for ()

Source§

impl Claim for usize

Source§

impl<T> Claim for Rc<T>

Source§

impl<T> Claim for Arc<T>

Source§

impl<T: Copy, const N: usize> Claim for [T; N]

Source§

impl<T: Claim> Claim for Option<T>

Source§

impl<T: Claim, E: Claim> Claim for Result<T, E>

Source§

impl<T: ?Sized> Claim for *const T

Source§

impl<T: ?Sized> Claim for *mut T

Source§

impl<T: ?Sized> Claim for &T

Source§

impl<T: ?Sized> Claim for PhantomData<T>

Implementors§