Enum MacroTypeVariation

pub enum MacroTypeVariation

Enum for the default type of macro constants.

Variants

Signed

Use i32 or i64

Unsigned

Use u32 or u64

Trait Implementations

impl Clone for MacroTypeVariation

fn clone(&self) -> MacroTypeVariation

impl Copy for MacroTypeVariation

impl Debug for MacroTypeVariation

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Default for MacroTypeVariation

fn default() -> MacroTypeVariation

impl Display for MacroTypeVariation

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Eq for MacroTypeVariation

impl FromStr for MacroTypeVariation

type Err = Error;
fn from_str(s: &str) -> Result<Self, Self::Err>

Create a MacroTypeVariation from a string.

impl PartialEq for MacroTypeVariation

fn eq(&self, other: &MacroTypeVariation) -> bool

impl StructuralPartialEq for MacroTypeVariation

Auto Trait Implementations

impl Freeze for MacroTypeVariation

impl RefUnwindSafe for MacroTypeVariation

impl Send for MacroTypeVariation

impl Sync for MacroTypeVariation

impl Unpin for MacroTypeVariation

impl UnsafeUnpin for MacroTypeVariation

impl UnwindSafe for MacroTypeVariation

Blanket Implementations

impl<T> Any for MacroTypeVariation where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for MacroTypeVariation where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for MacroTypeVariation where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for MacroTypeVariation where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for MacroTypeVariation

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> IntoEither for MacroTypeVariation

impl<T> ToOwned for MacroTypeVariation where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T> ToString for MacroTypeVariation where T: Display + ?Sized,

fn to_string(&self) -> String

impl<T, U> Into<U> for MacroTypeVariation where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for MacroTypeVariation 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 MacroTypeVariation where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>