Trait call_by::By[][src]

pub trait By<'a, C: Convention> {
    type Type;
    fn copy(this: Self::Type) -> Self
    where
        Self: Copy
;
fn clone(this: Self::Type) -> Self
    where
        Self: Clone
; }

To get the type of T via calling convention Convention, write <T as By<'a, Convention>>::Type.

Associated Types

type Type[src]

The type of Self when called by Convention.

Loading content...

Required methods

fn copy(this: Self::Type) -> Self where
    Self: Copy
[src]

Copy a thing of unknown calling convention, returning an owned value.

fn clone(this: Self::Type) -> Self where
    Self: Clone
[src]

Clone a thing of unknown calling convention, returning an owned value.

Loading content...

Implementors

impl<'a, T> By<'a, Val> for T[src]

type Type = T

impl<'a, T: 'a + ?Sized> By<'a, Mut> for T[src]

type Type = &'a mut T

impl<'a, T: 'a + ?Sized> By<'a, Ref> for T[src]

type Type = &'a T

Loading content...