Enum symbolic_common::Language [−][src]
#[repr(u32)]
#[non_exhaustive]
pub enum Language {
Unknown,
C,
Cpp,
D,
Go,
ObjC,
ObjCpp,
Rust,
Swift,
}Expand description
A programming language declared in debugging information.
In the context of function names or source code, the lanugage can help to determine appropriate
strategies for demangling names or syntax highlighting. See the Name type, which declares a
function name with an optional language.
This enumeration is represented as u32 for C-bindings and lowlevel APIs.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Implementations
Creates an Language from its u32 representation.
Returns Language::Unknown for all unknown values.
Examples
use symbolic_common::Language;
// Will print "C"
println!("{:?}", Language::from_u32(1));Returns the name of the language.
The name is always given in lower case without special characters or spaces, suitable for
serialization and parsing. For a human readable name, use the Display implementation,
instead.
Examples
use symbolic_common::Language;
// Will print "objcpp"
println!("{}", Language::ObjCpp.name());
// Will print "Objective-C++"
println!("{}", Language::ObjCpp);Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
type Err = UnknownLanguageError
type Err = UnknownLanguageError
The associated error which can be returned from parsing.
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Language
impl UnwindSafe for Language
Blanket Implementations
Mutably borrows from an owned value. Read more