pub enum SourceName {
Real(Utf8PathBuf),
Anon(String),
}Expand description
Where a source file came from.
Variants§
Real(Utf8PathBuf)
A file on disk.
Anon(String)
A source with no path: a test fixture, a string a host supplied.
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 Hash for SourceName
impl Hash for SourceName
Source§impl PartialEq for SourceName
impl PartialEq for SourceName
impl StructuralPartialEq for SourceName
Auto Trait Implementations§
impl Forget for SourceName
impl Freeze for SourceName
impl Move for SourceName
impl RefUnwindSafe for SourceName
impl Send for SourceNamewhere
RawVecInner: Send,
impl Sync for SourceNamewhere
RawVecInner: Sync,
impl Unpin for SourceName
impl UnsafeUnpin for SourceName
impl UnwindSafe for SourceNamewhere
RawVecInner: UnwindSafe,
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