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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.