[][src]Struct runestick::OwnedRef

pub struct OwnedRef<T: ?Sized> { /* fields omitted */ }

A strong reference to the given type.

Implementations

impl<T: ?Sized> OwnedRef<T>[src]

pub fn into_raw(this: Self) -> (*const T, RawOwnedRef)[src]

Convert into a raw pointer and associated raw access guard.

Safety

The returned pointer must not outlive the associated guard, since this prevents other uses of the underlying data which is incompatible with the current.

The returned pointer also must not outlive the VM that produced. Nor a call to clear the VM using clear, since this will free up the data being referenced.

Trait Implementations

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

impl<T: ?Sized> Deref for OwnedRef<T>[src]

type Target = T

The resulting type after dereferencing.

impl FromValue for OwnedRef<FnPtr>[src]

impl ReflectValueType for OwnedRef<FnPtr>[src]

type Owned = FnPtr

The internal, owned type used for this value.

Auto Trait Implementations

impl<T> !RefUnwindSafe for OwnedRef<T>

impl<T> !Send for OwnedRef<T>

impl<T> !Sync for OwnedRef<T>

impl<T: ?Sized> Unpin for OwnedRef<T> where
    T: Unpin

impl<T> !UnwindSafe for OwnedRef<T>

Blanket Implementations

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

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

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

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

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

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,