Enum bindgen::callbacks::ImplementsTrait
source · pub enum ImplementsTrait {
Yes,
Manually,
No,
}
Expand description
Whether it is possible or not to automatically derive trait for an item.
ⓘ
No
^
|
Manually
^
|
Yes
Initially we assume that we can derive trait for all types and then update our understanding as we learn more about each type.
Variants§
Yes
Yes, we can derive automatically.
Manually
The only thing that stops us from automatically deriving is that array with more than maximum number of elements is used.
This means we probably can “manually” implement such trait.
No
No, we cannot.
Implementations§
Trait Implementations§
source§impl BitOrAssign for CanDerive
impl BitOrAssign for CanDerive
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresource§impl Ord for CanDerive
impl Ord for CanDerive
source§impl PartialOrd for CanDerive
impl PartialOrd for CanDerive
impl Copy for CanDerive
impl Eq for CanDerive
impl StructuralPartialEq for CanDerive
Auto Trait Implementations§
impl Freeze for CanDerive
impl RefUnwindSafe for CanDerive
impl Send for CanDerive
impl Sync for CanDerive
impl Unpin for CanDerive
impl UnwindSafe for CanDerive
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more