pub enum SourcePath {
Std {
major: u32,
file: Segments,
},
Repository {
repository: String,
version: String,
file: Segments,
},
Local {
file: Segments,
},
Submitted {
name: String,
},
}Expand description
Variants§
Std
A file of std at a major version.
Repository
A file of a repository at a version, a tag or a commit.
Fields
Local
A file of the local tree.
Submitted
A lone submitted file.
Trait Implementations§
Source§impl Clone for SourcePath
impl Clone for SourcePath
Source§impl Debug for SourcePath
impl Debug for SourcePath
Source§impl Display for SourcePath
impl Display for SourcePath
impl Eq for SourcePath
Source§impl FromStr for SourcePath
impl FromStr for SourcePath
Source§type Err = SourcePathError
type Err = SourcePathError
The associated error which can be returned from parsing.
Source§fn from_str(text: &str) -> Result<SourcePath, SourcePathError>
fn from_str(text: &str) -> Result<SourcePath, SourcePathError>
Parses a string
s to return a value of this type. Read moreSource§impl PartialEq for SourcePath
impl PartialEq for SourcePath
impl StructuralPartialEq for SourcePath
Auto Trait Implementations§
impl Forget for SourcePath
impl Freeze for SourcePath
impl Move for SourcePath
impl RefUnwindSafe for SourcePath
impl Send for SourcePathwhere
RawVecInner: Send,
impl Sync for SourcePathwhere
RawVecInner: Sync,
impl Unpin for SourcePath
impl UnsafeUnpin for SourcePath
impl UnwindSafe for SourcePathwhere
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