pub struct InvalidRadixDigit {
pub radix: u8,
pub allowed: &'static [char],
pub digits: HashSet<char>,
pub last_op_digit: Option<(char, Range<usize>)>,
}Expand description
An invalid digit was used in a radix literal.
Fields§
§radix: u8The radix that was expected.
allowed: &'static [char]The set of allowed digits for this radix.
digits: HashSet<char>The invalid digits that were used.
last_op_digit: Option<(char, Range<usize>)>If the last digit in the user’s input is a + or / character, which happens to be a
valid character in base 64, this field contains the span of that character.
The user may have been trying to add a number in radix notation to another, and mistakenly
placed the + or / at the end of the radix number instead of spaced apart.
Trait Implementations§
Source§impl Clone for InvalidRadixDigit
impl Clone for InvalidRadixDigit
Source§fn clone(&self) -> InvalidRadixDigit
fn clone(&self) -> InvalidRadixDigit
Returns a duplicate 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 InvalidRadixDigit
impl Debug for InvalidRadixDigit
Source§impl ErrorKind for InvalidRadixDigit
impl ErrorKind for InvalidRadixDigit
Source§impl PartialEq for InvalidRadixDigit
impl PartialEq for InvalidRadixDigit
impl StructuralPartialEq for InvalidRadixDigit
Auto Trait Implementations§
impl Freeze for InvalidRadixDigit
impl RefUnwindSafe for InvalidRadixDigit
impl Send for InvalidRadixDigit
impl Sync for InvalidRadixDigit
impl Unpin for InvalidRadixDigit
impl UnwindSafe for InvalidRadixDigit
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