pub struct ParseError {
pub target: String,
pub other: Option<String>,
pub ty: ParseType,
}Expand description
§Parse Error
common error for parse, if any you need to parse, but failed, you can use this error
Fields§
§target: String§other: Option<String>§ty: ParseTypeImplementations§
Source§impl ParseError
impl ParseError
pub fn new(target: &str, ty: ParseType) -> Self
pub fn rust_dep(target: &str) -> Self
pub fn set_other(&mut self, other: &str) -> &mut Self
pub fn set_ty(&mut self, ty: ParseType) -> &mut Self
pub fn template(target: &str) -> Self
pub fn other(target: &str, ty: &str) -> Self
Trait Implementations§
Source§impl Clone for ParseError
impl Clone for ParseError
Source§fn clone(&self) -> ParseError
fn clone(&self) -> ParseError
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 ParseError
impl Debug for ParseError
Source§impl Display for ParseError
impl Display for ParseError
Source§impl From<ParseError> for Error
impl From<ParseError> for Error
Source§fn from(e: ParseError) -> Self
fn from(e: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ParseError
impl RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl UnsafeUnpin for ParseError
impl UnwindSafe for ParseError
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