pub enum ParseTritsError {
BadDigit(char),
Empty,
TooLong {
got: usize,
max: usize,
},
}Expand description
Error from parsing a balanced ternary literal.
Variants§
BadDigit(char)
A character outside the accepted digit set.
Accepted are T, t and - for -1; 0 for zero; 1 and + for +1.
Underscores are stripped before parsing and never reach here.
Empty
No digits at all.
TooLong
More digits than the type has trits.
Trait Implementations§
Source§impl Clone for ParseTritsError
impl Clone for ParseTritsError
Source§fn clone(&self) -> ParseTritsError
fn clone(&self) -> ParseTritsError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ParseTritsError
Source§impl Debug for ParseTritsError
impl Debug for ParseTritsError
Source§impl Display for ParseTritsError
impl Display for ParseTritsError
impl Eq for ParseTritsError
Source§impl PartialEq for ParseTritsError
impl PartialEq for ParseTritsError
Source§fn eq(&self, other: &ParseTritsError) -> bool
fn eq(&self, other: &ParseTritsError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ParseTritsError
Auto Trait Implementations§
impl Freeze for ParseTritsError
impl RefUnwindSafe for ParseTritsError
impl Send for ParseTritsError
impl Sync for ParseTritsError
impl Unpin for ParseTritsError
impl UnsafeUnpin for ParseTritsError
impl UnwindSafe for ParseTritsError
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