SourceLanguage

Enum SourceLanguage 

Source
#[non_exhaustive]
pub enum SourceLanguage {
Show 24 variants C = 0, Cpp = 1, Fortran = 2, Masm = 3, Pascal = 4, Basic = 5, Cobol = 6, Link = 7, Cvtres = 8, Cvtpgd = 9, CSharp = 10, VB = 11, ILAsm = 12, Java = 13, JScript = 14, MSIL = 15, HLSL = 16, ObjC = 17, ObjCXX = 18, Swift = 19, AliasObj = 20, Rust = 21, Go = 22, D = 68,
}
Expand description

These values correspond to the CV_CFL_LANG enumeration, and are documented on MSDN.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

C = 0

Application language is C.

§

Cpp = 1

Application language is C++.

§

Fortran = 2

Application language is FORTRAN.

§

Masm = 3

Application language is Microsoft Macro Assembler.

§

Pascal = 4

Application language is Pascal.

§

Basic = 5

Application language is BASIC.

§

Cobol = 6

Application language is COBOL.

Application is a linker-generated module.

§

Cvtres = 8

Application is a resource module converted with CVTRES tool.

§

Cvtpgd = 9

Application is a POGO optimized module generated with CVTPGD tool.

§

CSharp = 10

Application language is C#.

§

VB = 11

Application language is Visual Basic.

§

ILAsm = 12

Application language is intermediate language assembly (that is, Common Language Runtime (CLR) assembly).

§

Java = 13

Application language is Java.

§

JScript = 14

Application language is Jscript.

§

MSIL = 15

Application language is an unknown Microsoft Intermediate Language (MSIL), possibly a result of using the /LTCG (Link-time Code Generation) switch.

§

HLSL = 16

Application language is High Level Shader Language.

§

ObjC = 17

Application language is Objective-C.

§

ObjCXX = 18

Application language is Objective-C++.

§

Swift = 19

Application language is Swift.

§

AliasObj = 20

Application is a module generated by the aliasobj tool.

§

Rust = 21

Application language is Rust.

§

Go = 22

Application language is Go.

§

D = 68

The DMD compiler emits ‘D’ for the CV source language. Microsoft doesn’t have an enumerator for it yet.

Trait Implementations§

Source§

impl Clone for SourceLanguage

Source§

fn clone(&self) -> SourceLanguage

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SourceLanguage

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Display for SourceLanguage

Source§

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

Formats the value using the given formatter. Read more
Source§

impl From<u8> for SourceLanguage

Source§

fn from(value: u8) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for SourceLanguage

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<'a> TryFromCtx<'a, Endian> for SourceLanguage

Source§

type Error = Error

Source§

fn try_from_ctx(this: &'a [u8], le: Endian) -> Result<(Self, usize)>

Source§

impl Copy for SourceLanguage

Source§

impl Eq for SourceLanguage

Source§

impl StructuralPartialEq for SourceLanguage

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

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

Source§

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

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

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

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.