pub enum TypeConstraint {
Readable,
Mutable,
Copy,
Clone,
PartialOrd,
PartialEq,
}Expand description
Type constraint inferred from void* usage.
Variants§
Readable
Must be readable (shared reference)
Mutable
Must be mutable (exclusive reference)
Copy
Must implement Copy (for memcpy-style operations)
Clone
Must implement Clone
PartialOrd
Must implement PartialOrd (for compare operations)
PartialEq
Must implement PartialEq (for equality comparisons)
Trait Implementations§
Source§impl Clone for TypeConstraint
impl Clone for TypeConstraint
Source§fn clone(&self) -> TypeConstraint
fn clone(&self) -> TypeConstraint
Returns a duplicate 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 TypeConstraint
impl Debug for TypeConstraint
Source§impl PartialEq for TypeConstraint
impl PartialEq for TypeConstraint
impl Eq for TypeConstraint
impl StructuralPartialEq for TypeConstraint
Auto Trait Implementations§
impl Freeze for TypeConstraint
impl RefUnwindSafe for TypeConstraint
impl Send for TypeConstraint
impl Sync for TypeConstraint
impl Unpin for TypeConstraint
impl UnwindSafe for TypeConstraint
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