Enum RustEdition

pub enum RustEdition

Represents Rust Edition for the generated bindings

Variants

Edition2018

The 2018 edition of Rust.

Edition2021

The 2021 edition of Rust.

Edition2024

The 2024 edition of Rust.

Trait Implementations

impl Clone for RustEdition

fn clone(&self) -> RustEdition

impl Copy for RustEdition

impl Debug for RustEdition

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

impl Default for RustEdition

fn default() -> Self

impl Display for RustEdition

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

impl Eq for RustEdition

impl FromStr for RustEdition

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

impl Hash for RustEdition

fn hash<__H: Hasher>(&self, state: &mut __H)

impl Ord for RustEdition

fn cmp(&self, other: &RustEdition) -> Ordering

impl PartialEq for RustEdition

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

impl PartialOrd for RustEdition

fn partial_cmp(&self, other: &RustEdition) -> Option<Ordering>

impl StructuralPartialEq for RustEdition

Auto Trait Implementations

impl Freeze for RustEdition

impl RefUnwindSafe for RustEdition

impl Send for RustEdition

impl Sync for RustEdition

impl Unpin for RustEdition

impl UnsafeUnpin for RustEdition

impl UnwindSafe for RustEdition

Blanket Implementations

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

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

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

impl<T> From<T> for RustEdition

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> IntoEither for RustEdition

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

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

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

fn to_string(&self) -> String

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

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