[][src]Enum bindgen::AliasVariation

pub enum AliasVariation {
    TypeAlias,
    NewType,
    NewTypeDeref,
}

Enum for how aliases should be translated.

Variants

TypeAlias

Convert to regular Rust alias

NewType

Create a new type by wrapping the old type in a struct and using #[repr(transparent)]

NewTypeDeref

Same as NewStruct but also impl Deref to be able to use the methods of the wrapped type

Implementations

impl AliasVariation[src]

pub fn as_str(&self) -> &str[src]

Convert an AliasVariation to its str representation.

Trait Implementations

impl Clone for AliasVariation[src]

impl Copy for AliasVariation[src]

impl Debug for AliasVariation[src]

impl Default for AliasVariation[src]

impl FromStr for AliasVariation[src]

type Err = Error

The associated error which can be returned from parsing.

fn from_str(s: &str) -> Result<Self, Self::Err>[src]

Create an AliasVariation from a string.

impl PartialEq<AliasVariation> for AliasVariation[src]

impl StructuralPartialEq for AliasVariation[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.