pub enum SourceName {
File(PathBuf),
Stdin,
}Expand description
Which input a parse error came from. Names an input being read, so there
is no variant for --set: a bad --set expression is rejected by
PathLeaf during argument parsing, long before anything
reaches here.
Variants§
Trait Implementations§
Source§impl Clone for SourceName
impl Clone for SourceName
Source§impl Debug for SourceName
impl Debug for SourceName
Source§impl Display for SourceName
impl Display for SourceName
impl Eq for SourceName
Source§impl PartialEq for SourceName
impl PartialEq for SourceName
impl StructuralPartialEq for SourceName
Auto Trait Implementations§
impl Freeze for SourceName
impl RefUnwindSafe for SourceName
impl Send for SourceName
impl Sync for SourceName
impl Unpin for SourceName
impl UnsafeUnpin for SourceName
impl UnwindSafe for SourceName
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.