[][src]Struct gluon_vm::api::PushAsRef

pub struct PushAsRef<T, R: ?Sized>(_, _);

Newtype which can be used to push types implementating AsRef

Methods

impl<T, R: ?Sized> PushAsRef<T, R>[src]

pub fn new(value: T) -> PushAsRef<T, R>[src]

Trait Implementations

impl<'vm, T, R: ?Sized> Pushable<'vm> for PushAsRef<T, R> where
    T: AsRef<R>,
    &'a R: Pushable<'vm>, 
[src]

impl<T, R: ?Sized> VmType for PushAsRef<T, R> where
    T: AsRef<R>,
    R: 'static,
    &'static R: VmType
[src]

type Type = <&'static R as VmType>::Type

A version of Self which implements Any allowing a TypeId to be retrieved

Auto Trait Implementations

impl<T, R: ?Sized> RefUnwindSafe for PushAsRef<T, R> where
    R: RefUnwindSafe,
    T: RefUnwindSafe

impl<T, R: ?Sized> Send for PushAsRef<T, R> where
    R: Send,
    T: Send

impl<T, R: ?Sized> Sync for PushAsRef<T, R> where
    R: Sync,
    T: Sync

impl<T, R: ?Sized> Unpin for PushAsRef<T, R> where
    R: Unpin,
    T: Unpin

impl<T, R: ?Sized> UnwindSafe for PushAsRef<T, R> where
    R: UnwindSafe,
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<'vm, T> AsyncPushable<'vm> for T where
    T: Pushable<'vm>, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<'_, T> Captures<'_> for T[src]

impl<Choices> CoproductSubsetter<CNil, HNil> for Choices[src]

type Remainder = Choices

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastArc for T where
    T: Downcast + Send + Sync
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]

impl<T> From<T> for T[src]

impl<D, T> FromPtr<D> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U, I> LiftInto<U, I> for T where
    U: LiftFrom<T, I>, 
[src]

impl<'vm, T> Pushable<'vm> for T where
    T: Userdata
[src]

impl<Source> Sculptor<HNil, HNil> for Source[src]

type Remainder = Source

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.