#[repr(C)]pub struct CSTL_CompType {
pub base: CSTL_EqType,
pub is_lt: 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 at least a strict weak ordering:
is_lt(a, b) == true => is_lt(b, a) == false
is_lt(a, b) == true && is_lt(b, c) == true => is_lt(a, c) == true
Base CSTL_EqType behavior and size and alignment requirements are unchanged.
Fields§
§base: CSTL_EqTypeThe underlying type info.
is_lt: Option<unsafe extern "C" fn(lhs: *const c_void, rhs: *const c_void) -> bool>Bound “less than” binary function.
Must establish a strict weak ordering relation.
If null a memcmp(lhs, rhs, size) < 0 will be used in its stead.
Trait Implementations§
Source§impl Clone for CSTL_CompType
impl Clone for CSTL_CompType
Source§fn clone(&self) -> CSTL_CompType
fn clone(&self) -> CSTL_CompType
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_CompType
impl Debug for CSTL_CompType
impl Copy for CSTL_CompType
Auto Trait Implementations§
impl Freeze for CSTL_CompType
impl RefUnwindSafe for CSTL_CompType
impl Send for CSTL_CompType
impl Sync for CSTL_CompType
impl Unpin for CSTL_CompType
impl UnwindSafe for CSTL_CompType
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