#[repr(C)]pub struct JanetAbstractType {
pub name: *const c_char,
pub gc: Option<unsafe extern "C" fn(data: *mut c_void, len: usize) -> c_int>,
pub gcmark: Option<unsafe extern "C" fn(data: *mut c_void, len: usize) -> c_int>,
pub get: Option<unsafe extern "C" fn(data: *mut c_void, key: Janet) -> Janet>,
pub put: Option<unsafe extern "C" fn(data: *mut c_void, key: Janet, value: Janet)>,
pub marshal: Option<unsafe extern "C" fn(p: *mut c_void, ctx: *mut JanetMarshalContext)>,
pub unmarshal: Option<unsafe extern "C" fn(p: *mut c_void, ctx: *mut JanetMarshalContext)>,
pub tostring: Option<unsafe extern "C" fn(p: *mut c_void, buffer: *mut JanetBuffer)>,
}
Fields§
§name: *const c_char
§gc: Option<unsafe extern "C" fn(data: *mut c_void, len: usize) -> c_int>
§gcmark: Option<unsafe extern "C" fn(data: *mut c_void, len: usize) -> c_int>
§get: Option<unsafe extern "C" fn(data: *mut c_void, key: Janet) -> Janet>
§put: Option<unsafe extern "C" fn(data: *mut c_void, key: Janet, value: Janet)>
§marshal: Option<unsafe extern "C" fn(p: *mut c_void, ctx: *mut JanetMarshalContext)>
§unmarshal: Option<unsafe extern "C" fn(p: *mut c_void, ctx: *mut JanetMarshalContext)>
§tostring: Option<unsafe extern "C" fn(p: *mut c_void, buffer: *mut JanetBuffer)>
Trait Implementations§
Source§impl Clone for JanetAbstractType
impl Clone for JanetAbstractType
Source§fn clone(&self) -> JanetAbstractType
fn clone(&self) -> JanetAbstractType
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for JanetAbstractType
impl Debug for JanetAbstractType
impl Copy for JanetAbstractType
Auto Trait Implementations§
impl Freeze for JanetAbstractType
impl RefUnwindSafe for JanetAbstractType
impl !Send for JanetAbstractType
impl !Sync for JanetAbstractType
impl Unpin for JanetAbstractType
impl UnwindSafe for JanetAbstractType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more