[][src]Enum inkwell::types::StringRadix

pub enum StringRadix {
    Binary,
    Octal,
    Decimal,
    Hexadecimal,
    Alphanumeric,
}

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

impl StringRadix[src]

pub fn to_regex(&self) -> Regex[src]

Create a Regex that matches valid strings for the given radix.

Trait Implementations

impl Clone for StringRadix[src]

impl Copy for StringRadix[src]

impl Debug for StringRadix[src]

impl Eq for StringRadix[src]

impl Hash for StringRadix[src]

impl PartialEq<StringRadix> for StringRadix[src]

impl StructuralEq for StringRadix[src]

impl StructuralPartialEq for StringRadix[src]

impl TryFrom<u8> for StringRadix[src]

type Error = ()

The type returned in the event of a conversion error.

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.