Enum inkwell::types::StringRadix
source · pub enum StringRadix {
Binary = 2,
Octal = 8,
Decimal = 10,
Hexadecimal = 16,
Alphanumeric = 36,
}
Expand description
How to interpret a string or digits used to construct an integer constant.
Variants§
Binary = 2
Binary 0 or 1
Octal = 8
Octal 0-7
Decimal = 10
Decimal 0-9
Hexadecimal = 16
Hexadecimal with upper or lowercase letters up to F.
Alphanumeric = 36
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 for StringRadix
impl PartialEq 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 ==
.source§impl TryFrom<u8> for StringRadix
impl TryFrom<u8> for StringRadix
impl Copy for StringRadix
impl Eq 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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more