#[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_lengthTrait Implementations§
Source§impl Clone for custom_operations
impl Clone for custom_operations
Source§fn clone(&self) -> custom_operations
fn clone(&self) -> custom_operations
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for custom_operations
Auto Trait Implementations§
impl !Send for custom_operations
impl !Sync for custom_operations
impl Freeze for custom_operations
impl RefUnwindSafe for custom_operations
impl Unpin for custom_operations
impl UnsafeUnpin for custom_operations
impl UnwindSafe for custom_operations
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