Trait josephine::trace::JSTraceable
[−]
[src]
pub unsafe trait JSTraceable { unsafe fn trace(&self, trc: *mut JSTracer); fn as_ptr(&self) -> *const JSTraceable
where
Self: Sized, { ... } fn as_mut_ptr(&mut self) -> *mut JSTraceable
where
Self: Sized, { ... } }
A trait for Rust data that can be traced.
Required Methods
Provided Methods
fn as_ptr(&self) -> *const JSTraceable where
Self: Sized,
Self: Sized,
fn as_mut_ptr(&mut self) -> *mut JSTraceable where
Self: Sized,
Self: Sized,
Implementations on Foreign Types
impl JSTraceable for String
[src]
unsafe fn trace(&self, _trc: *mut JSTracer)
[src]
fn as_ptr(&self) -> *const JSTraceable where
Self: Sized,
[src]
Self: Sized,
fn as_mut_ptr(&mut self) -> *mut JSTraceable where
Self: Sized,
[src]
Self: Sized,
impl JSTraceable for usize
[src]
unsafe fn trace(&self, _trc: *mut JSTracer)
[src]
fn as_ptr(&self) -> *const JSTraceable where
Self: Sized,
[src]
Self: Sized,
fn as_mut_ptr(&mut self) -> *mut JSTraceable where
Self: Sized,
[src]
Self: Sized,
impl JSTraceable for ()
[src]
unsafe fn trace(&self, _trc: *mut JSTracer)
[src]
fn as_ptr(&self) -> *const JSTraceable where
Self: Sized,
[src]
Self: Sized,
fn as_mut_ptr(&mut self) -> *mut JSTraceable where
Self: Sized,
[src]
Self: Sized,
impl<T> JSTraceable for Option<T> where
T: JSTraceable,
[src]
T: JSTraceable,
unsafe fn trace(&self, trc: *mut JSTracer)
[src]
fn as_ptr(&self) -> *const JSTraceable where
Self: Sized,
[src]
Self: Sized,
fn as_mut_ptr(&mut self) -> *mut JSTraceable where
Self: Sized,
[src]
Self: Sized,
impl<T> JSTraceable for Vec<T> where
T: JSTraceable,
[src]
T: JSTraceable,
unsafe fn trace(&self, trc: *mut JSTracer)
[src]
fn as_ptr(&self) -> *const JSTraceable where
Self: Sized,
[src]
Self: Sized,
fn as_mut_ptr(&mut self) -> *mut JSTraceable where
Self: Sized,
[src]
Self: Sized,
Implementors
impl<'a, C, T> JSTraceable for JSManaged<'a, C, T> where
T: JSTraceable,impl<'a, C> JSTraceable for JSString<'a, C>