pub struct VosError { /* private fields */ }Implementations
sourceimpl VosError
impl VosError
pub fn kind(&self) -> &VosErrorKind
pub fn file(&self) -> PathBuf
pub fn range(&self) -> Option<Range<u32>>
pub fn with_file(self, file_path: impl Into<String>) -> Self
pub fn set_file(&mut self, file_path: impl Into<String>)
pub fn with_range(self, range: Range<u32>) -> Self
pub fn set_range(&mut self, range: Range<u32>)
Trait Implementations
sourceimpl Error for VosError
impl Error for VosError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<ParseBigDecimalError> for VosError
impl From<ParseBigDecimalError> for VosError
sourcefn from(error: ParseBigDecimalError) -> Self
fn from(error: ParseBigDecimalError) -> Self
Converts to this type from the input type.
sourceimpl From<ParseBigIntError> for VosError
impl From<ParseBigIntError> for VosError
sourcefn from(e: ParseBigIntError) -> Self
fn from(e: ParseBigIntError) -> Self
Converts to this type from the input type.
sourceimpl From<ParseError> for VosError
impl From<ParseError> for VosError
sourcefn from(error: ParseError) -> Self
fn from(error: ParseError) -> Self
Converts to this type from the input type.
sourceimpl From<ParseFloatError> for VosError
impl From<ParseFloatError> for VosError
sourcefn from(e: ParseFloatError) -> Self
fn from(e: ParseFloatError) -> Self
Converts to this type from the input type.
sourceimpl From<ParseIntError> for VosError
impl From<ParseIntError> for VosError
sourcefn from(e: ParseIntError) -> Self
fn from(e: ParseIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for VosError
impl Send for VosError
impl Sync for VosError
impl Unpin for VosError
impl !UnwindSafe for VosError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more