[][src]Struct ocaml_interop::OCamlRef

pub struct OCamlRef<'a, T> { /* fields omitted */ }

OCamlRef<T> is reference to an OCaml<T> value that is tracked by the GC.

Unlike OCaml<T> values, it can be re-referenced after OCaml allocations.

Implementations

impl<'a, T> OCamlRef<'a, T>[src]

pub fn new<'gc>(gc: &GCFrame<'gc>, x: OCaml<'_, T>) -> OCamlRef<'gc, T>[src]

pub fn set(&mut self, x: OCaml<'_, T>)[src]

pub fn get_raw(&self) -> RawOCaml[src]

Trait Implementations

impl<'a, T> Drop for OCamlRef<'a, T>[src]

impl<'a, T> ToOCaml<T> for OCamlRef<'a, T>[src]

Auto Trait Implementations

impl<'a, T> !RefUnwindSafe for OCamlRef<'a, T>

impl<'a, T> !Send for OCamlRef<'a, T>

impl<'a, T> !Sync for OCamlRef<'a, T>

impl<'a, T> Unpin for OCamlRef<'a, T> where
    T: Unpin

impl<'a, T> !UnwindSafe for OCamlRef<'a, 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.