Enum llvm_plugin_inkwell::types::StringRadix
source · pub enum StringRadix {
Binary,
Octal,
Decimal,
Hexadecimal,
Alphanumeric,
}Expand description
How to interpret a string or digits used to construct an integer constant.
Variants§
Binary
Binary 0 or 1
Octal
Octal 0-7
Decimal
Decimal 0-9
Hexadecimal
Hexadecimal with upper or lowercase letters up to F.
Alphanumeric
Alphanumeric, 0-9 and all 26 letters in upper or lowercase.
Implementations§
source§impl StringRadix
impl StringRadix
sourcepub fn matches_str(&self, slice: &str) -> bool
pub fn matches_str(&self, slice: &str) -> bool
Is the string valid for the given radix?
Trait Implementations§
source§impl Clone for StringRadix
impl Clone for StringRadix
source§fn clone(&self) -> StringRadix
fn clone(&self) -> StringRadix
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for StringRadix
impl Debug for StringRadix
source§impl Hash for StringRadix
impl Hash for StringRadix
source§impl PartialEq<StringRadix> for StringRadix
impl PartialEq<StringRadix> for StringRadix
source§fn eq(&self, other: &StringRadix) -> bool
fn eq(&self, other: &StringRadix) -> bool
This method tests for
self and other values to be equal, and is used
by ==.