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
sourceimpl 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
sourceimpl Clone for StringRadix
impl Clone for StringRadix
sourcefn clone(&self) -> StringRadix
fn clone(&self) -> StringRadix
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for StringRadix
impl Debug for StringRadix
sourceimpl Hash for StringRadix
impl Hash for StringRadix
sourceimpl PartialEq<StringRadix> for StringRadix
impl PartialEq<StringRadix> for StringRadix
sourcefn 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 ==. Read more
sourceimpl TryFrom<u8> for StringRadix
impl TryFrom<u8> for StringRadix
impl Copy for StringRadix
impl Eq for StringRadix
impl StructuralEq for StringRadix
impl StructuralPartialEq for StringRadix
Auto Trait Implementations
impl RefUnwindSafe for StringRadix
impl Send for StringRadix
impl Sync for StringRadix
impl Unpin for StringRadix
impl UnwindSafe for StringRadix
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more