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.
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 PartialEq for CanDerive
impl PartialEq for CanDerive
source§impl PartialOrd for CanDerive
impl PartialOrd for CanDerive
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for CanDerive
impl Eq for CanDerive
impl StructuralPartialEq for CanDerive
Auto Trait Implementations§
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