pub struct ParamsYamlError<'t> {
pub line: usize,
pub text: &'t str,
pub reason: &'static str,
}Expand description
Why a parameter file was refused: the 1-based line, the line as written, and the reason. Every construct the subset does not read is a refusal, never a skip — a value silently dropped from a file is the same “compiles and differs” the argv parse exists to stop.
Fields§
§line: usize1-based line number.
text: &'t strThe offending line, trimmed.
reason: &'static strWhat is wrong with it.
Trait Implementations§
Source§impl<'t> Clone for ParamsYamlError<'t>
impl<'t> Clone for ParamsYamlError<'t>
Source§fn clone(&self) -> ParamsYamlError<'t>
fn clone(&self) -> ParamsYamlError<'t>
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<'t> Copy for ParamsYamlError<'t>
Source§impl<'t> Debug for ParamsYamlError<'t>
impl<'t> Debug for ParamsYamlError<'t>
Source§impl Display for ParamsYamlError<'_>
impl Display for ParamsYamlError<'_>
impl<'t> Eq for ParamsYamlError<'t>
Source§impl<'t> PartialEq for ParamsYamlError<'t>
impl<'t> PartialEq for ParamsYamlError<'t>
impl<'t> StructuralPartialEq for ParamsYamlError<'t>
Auto Trait Implementations§
impl<'t> Freeze for ParamsYamlError<'t>
impl<'t> RefUnwindSafe for ParamsYamlError<'t>
impl<'t> Send for ParamsYamlError<'t>
impl<'t> Sync for ParamsYamlError<'t>
impl<'t> Unpin for ParamsYamlError<'t>
impl<'t> UnsafeUnpin for ParamsYamlError<'t>
impl<'t> UnwindSafe for ParamsYamlError<'t>
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