Enum autocxx_bindgen::callbacks::ImplementsTrait[][src]

pub enum ImplementsTrait {
    Yes,
    Manually,
    No,
}

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

impl CanDerive[src]

pub fn join(self, rhs: Self) -> Self[src]

Take the least upper bound of self and rhs.

Trait Implementations

impl BitOr<CanDerive> for CanDerive[src]

type Output = Self

The resulting type after applying the | operator.

impl BitOrAssign<CanDerive> for CanDerive[src]

impl Clone for CanDerive[src]

impl Copy for CanDerive[src]

impl Debug for CanDerive[src]

impl Default for CanDerive[src]

impl Eq for CanDerive[src]

impl Ord for CanDerive[src]

impl PartialEq<CanDerive> for CanDerive[src]

impl PartialOrd<CanDerive> for CanDerive[src]

impl StructuralEq for CanDerive[src]

impl StructuralPartialEq for CanDerive[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.