[−][src]Struct ocaml::custom::CustomOps
CustomOps duplicates sys::custom::custom_operations
to provide a slightly nicer experience in
Rust
This should rarely be constructed manually, custom!
simplifies the process of creating custom
types.
See the struct custom_operations section in the OCaml manual for more information about each field
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) -> Int>
serialize: Option<unsafe extern "C" fn(v: Value, bsize_32: *mut Uint, bsize_64: *mut Uint)>
deserialize: Option<unsafe extern "C" fn(dst: *mut c_void) -> Uint>
compare_ext: Option<unsafe extern "C" fn(v1: Value, v2: Value) -> i32>
fixed_length: *const custom_fixed_length
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CustomOps
impl !Send for CustomOps
impl !Sync for CustomOps
impl Unpin for CustomOps
impl UnwindSafe for CustomOps
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,