#[repr(C)]pub struct CSTL_EqType {
pub base: CSTL_Type,
pub is_eq: Option<unsafe extern "C" fn(lhs: *const c_void, rhs: *const c_void) -> bool>,
}Expand description
Type info used in place of a template parameter for a type that can be compared.
The type must establish an equivalence relation:
is_eq(a, b) == true => is_eq(b, a) == true,
is_eq(a, b) == true && is_eq(b, c) == true => is_eq(a, c) == true,
Base CSTL_Type behavior and size and alignment requirements are unchanged.
Fields§
§base: CSTL_TypeThe underlying type info.
is_eq: Option<unsafe extern "C" fn(lhs: *const c_void, rhs: *const c_void) -> bool>Bound “equality” binary function.
Must establish an equivalence relation.
If null a memcmp(lhs, rhs, size) == 0 will be used in its stead.
Trait Implementations§
Source§impl Clone for CSTL_EqType
impl Clone for CSTL_EqType
Source§fn clone(&self) -> CSTL_EqType
fn clone(&self) -> CSTL_EqType
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CSTL_EqType
impl Debug for CSTL_EqType
impl Copy for CSTL_EqType
Auto Trait Implementations§
impl Freeze for CSTL_EqType
impl RefUnwindSafe for CSTL_EqType
impl Send for CSTL_EqType
impl Sync for CSTL_EqType
impl Unpin for CSTL_EqType
impl UnwindSafe for CSTL_EqType
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