Enum autocxx_bindgen::AliasVariation
source · pub enum AliasVariation {
TypeAlias,
NewType,
NewTypeDeref,
}
Expand description
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§
Trait Implementations§
source§impl Clone for AliasVariation
impl Clone for AliasVariation
source§fn clone(&self) -> AliasVariation
fn clone(&self) -> AliasVariation
Returns a copy 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 AliasVariation
impl Debug for AliasVariation
source§impl Default for AliasVariation
impl Default for AliasVariation
source§fn default() -> AliasVariation
fn default() -> AliasVariation
Returns the “default value” for a type. Read more
source§impl FromStr for AliasVariation
impl FromStr for AliasVariation
source§impl PartialEq<AliasVariation> for AliasVariation
impl PartialEq<AliasVariation> for AliasVariation
source§fn eq(&self, other: &AliasVariation) -> bool
fn eq(&self, other: &AliasVariation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.