Struct ocaml_sys::custom_operations
source · [−]#[repr(C)]pub struct custom_operations {
pub identifier: *const Char,
pub finalize: Option<unsafe extern "C" fn(v: Value)>,
pub compare: Option<unsafe extern "C" fn(v1: Value, v2: Value) -> i32>,
pub hash: Option<unsafe extern "C" fn(v: Value) -> Intnat>,
pub serialize: Option<unsafe extern "C" fn(v: Value, bsize_32: *mut Uintnat, bsize_64: *mut Uintnat)>,
pub deserialize: Option<unsafe extern "C" fn(dst: *mut c_void) -> Uintnat>,
pub compare_ext: Option<unsafe extern "C" fn(v1: Value, v2: Value) -> i32>,
pub fixed_length: *const custom_fixed_length,
}
Fields
identifier: *const Char
finalize: Option<unsafe extern "C" fn(v: Value)>
compare: Option<unsafe extern "C" fn(v1: Value, v2: Value) -> i32>
hash: Option<unsafe extern "C" fn(v: Value) -> Intnat>
serialize: Option<unsafe extern "C" fn(v: Value, bsize_32: *mut Uintnat, bsize_64: *mut Uintnat)>
deserialize: Option<unsafe extern "C" fn(dst: *mut c_void) -> Uintnat>
compare_ext: Option<unsafe extern "C" fn(v1: Value, v2: Value) -> i32>
fixed_length: *const custom_fixed_length
Trait Implementations
sourceimpl Clone for custom_operations
impl Clone for custom_operations
sourcefn clone(&self) -> custom_operations
fn clone(&self) -> custom_operations
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for custom_operations
impl Debug for custom_operations
impl Copy for custom_operations
Auto Trait Implementations
impl RefUnwindSafe for custom_operations
impl !Send for custom_operations
impl !Sync for custom_operations
impl Unpin for custom_operations
impl UnwindSafe for custom_operations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more