Enum dubp_documents_parser::TextParseError [−][src]
pub enum TextParseError { BaseConversionError { field: &'static str, error: BaseConversionError, }, BlockstampParseError(BlockstampParseError), CompactDoc { field: &'static str, error: ParseCompactDocError, }, InvalidInnerFormat(String), IpAddrError(AddrParseError), PestError(PestError), UnexpectedRule(String), UnexpectedVersion(String), UnknownType, }
Expand description
List of possible errors while parsing a text document.
Variants
Expand description
Base 16/58/64 convertion error
Show fields
Fields of BaseConversionError
field: &'static str
error: BaseConversionError
Expand description
Fail to parse blockstamp
Expand description
Fail to parse compact doc
Show fields
Fields of CompactDoc
field: &'static str
error: ParseCompactDocError
InvalidInnerFormat(String)
Expand description
The given source don’t have a valid specific document format (document type).
IpAddrError(AddrParseError)
Expand description
Ip address parse error
PestError(PestError)
Expand description
Error with pest parser
UnexpectedRule(String)
Expand description
Unexpected rule
UnexpectedVersion(String)
Expand description
Unexpected version
Expand description
Unknown type
Trait Implementations
impl Clone for TextParseError
[src]
impl Clone for TextParseError
[src]fn clone(&self) -> TextParseError
[src]
fn clone(&self) -> TextParseError
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for TextParseError
[src]
impl Debug for TextParseError
[src]impl Display for TextParseError
[src]
impl Display for TextParseError
[src]impl Error for TextParseError
[src]
impl Error for TextParseError
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]use the Display impl or to_string()
impl From<AddrParseError> for TextParseError
[src]
impl From<AddrParseError> for TextParseError
[src]fn from(e: AddrParseError) -> Self
[src]
fn from(e: AddrParseError) -> Self
[src]Performs the conversion.
impl<T: RuleType> From<Error<T>> for TextParseError
[src]
impl<T: RuleType> From<Error<T>> for TextParseError
[src]impl From<PestError> for TextParseError
[src]
impl From<PestError> for TextParseError
[src]impl PartialEq<TextParseError> for TextParseError
[src]
impl PartialEq<TextParseError> for TextParseError
[src]fn eq(&self, other: &TextParseError) -> bool
[src]
fn eq(&self, other: &TextParseError) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &TextParseError) -> bool
[src]
fn ne(&self, other: &TextParseError) -> bool
[src]This method tests for !=
.
impl Eq for TextParseError
[src]
impl StructuralEq for TextParseError
[src]
impl StructuralPartialEq for TextParseError
[src]
Auto Trait Implementations
impl RefUnwindSafe for TextParseError
impl Send for TextParseError
impl Sync for TextParseError
impl Unpin for TextParseError
impl UnwindSafe for TextParseError
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more