[][src]Struct ocaml_sys::custom_operations

#[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 Charfinalize: 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

impl Clone for custom_operations[src]

impl Copy for custom_operations[src]

impl Debug for custom_operations[src]

Auto Trait Implementations

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.