Enum AliasVariation
pub enum AliasVariation
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
NewTypebut also impl Deref to be able to use the methods of the wrapped type
Trait Implementations
impl Clone for AliasVariation
fn clone(&self) -> AliasVariation
impl Copy for AliasVariation
impl Debug for AliasVariation
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for AliasVariation
fn default() -> AliasVariation
impl Display for AliasVariation
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for AliasVariation
impl FromStr for AliasVariation
type Err = Error;fn from_str(s: &str) -> Result<Self, Self::Err>Create an
AliasVariationfrom a string.
impl PartialEq for AliasVariation
fn eq(&self, other: &AliasVariation) -> bool
impl StructuralPartialEq for AliasVariation
Auto Trait Implementations
impl Freeze for AliasVariation
impl RefUnwindSafe for AliasVariation
impl Send for AliasVariation
impl Sync for AliasVariation
impl Unpin for AliasVariation
impl UnsafeUnpin for AliasVariation
impl UnwindSafe for AliasVariation
Blanket Implementations
impl<T> Any for AliasVariation
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for AliasVariation
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for AliasVariation
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for AliasVariation
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for AliasVariation
fn from(t: T) -> TReturns the argument unchanged.
impl<T> IntoEither for AliasVariation
impl<T> ToOwned for AliasVariation
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T> ToString for AliasVariation
where
T: Display + ?Sized,
fn to_string(&self) -> String
impl<T, U> Into<U> for AliasVariation
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for AliasVariation
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for AliasVariation
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>