[−][src]Struct ocaml_interop::OCamlRef
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]
fn to_ocaml(&self, _token: OCamlAllocToken) -> OCamlAllocResult<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,
T: Unpin,
impl<'a, T> !UnwindSafe for OCamlRef<'a, T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,