[][src]Trait gazebo::dupe::Dupe

pub trait Dupe: Clone {
    fn dupe(&self) -> Self { ... }
}

Like Clone, but should only be available if Clone is constant time and zero allocation (e.g. a few Arc bumps)

Provided methods

fn dupe(&self) -> Self

Loading content...

Implementations on Foreign Types

impl<A: ?Sized> Dupe for Arc<A>[src]

impl<A: ?Sized> Dupe for Rc<A>[src]

impl<A: Copy> Dupe for Cell<A>[src]

impl<A: Dupe> Dupe for Option<A>[src]

impl<T: Dupe, E: Dupe> Dupe for Result<T, E>[src]

impl<A: Dupe> Dupe for (A,)[src]

impl Dupe for ()[src]

impl Dupe for bool[src]

impl Dupe for char[src]

impl Dupe for u8[src]

impl Dupe for u16[src]

impl Dupe for u32[src]

impl Dupe for u64[src]

impl Dupe for u128[src]

impl Dupe for usize[src]

impl Dupe for i8[src]

impl Dupe for i16[src]

impl Dupe for i32[src]

impl Dupe for i64[src]

impl Dupe for i128[src]

impl Dupe for isize[src]

impl Dupe for f32[src]

impl Dupe for f64[src]

impl Dupe for Instant[src]

impl<T: ?Sized> Dupe for PhantomData<T>[src]

Loading content...

Implementors

impl<T: ?Sized> Dupe for PhantomDataInvariant<T>[src]

Loading content...