#[non_exhaustive]pub struct FileParseError {
pub format: &'static str,
pub message: Box<str>,
pub line: Option<usize>,
pub column: Option<usize>,
}Expand description
Structured config/spec deserialization failure metadata used for user-facing diagnostics.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.format: &'static strParser format name, such as TOML or YAML.
message: Box<str>Human-readable parser message.
line: Option<usize>Optional 1-based line number.
column: Option<usize>Optional 1-based column number.
Trait Implementations§
Source§impl Clone for FileParseError
impl Clone for FileParseError
Source§fn clone(&self) -> FileParseError
fn clone(&self) -> FileParseError
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 FileParseError
impl Debug for FileParseError
Source§impl Display for FileParseError
impl Display for FileParseError
Source§impl PartialEq for FileParseError
impl PartialEq for FileParseError
impl Eq for FileParseError
impl StructuralPartialEq for FileParseError
Auto Trait Implementations§
impl Freeze for FileParseError
impl RefUnwindSafe for FileParseError
impl Send for FileParseError
impl Sync for FileParseError
impl Unpin for FileParseError
impl UnsafeUnpin for FileParseError
impl UnwindSafe for FileParseError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.