pub enum SourcePath {
Anonymous,
Snippet(Cow<'static, str>),
Local(PathBuf),
Remote(Url),
}
Expand description
The source path
Variants§
Anonymous
This is an anonymous identifier
Snippet(Cow<'static, str>)
This is a snippet of identifier
Local(PathBuf)
This is a local identifier
Remote(Url)
This is a remote identifier
Implementations§
Trait Implementations§
Source§impl Clone for SourcePath
impl Clone for SourcePath
Source§fn clone(&self) -> SourcePath
fn clone(&self) -> SourcePath
Returns a copy 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 SourcePath
impl Debug for SourcePath
Source§impl Default for SourcePath
impl Default for SourcePath
Source§fn default() -> SourcePath
fn default() -> SourcePath
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SourcePath
impl<'de> Deserialize<'de> for SourcePath
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SourcePath
impl Display for SourcePath
Source§impl Hash for SourcePath
impl Hash for SourcePath
Source§impl PartialEq for SourcePath
impl PartialEq for SourcePath
Source§impl Serialize for SourcePath
impl Serialize for SourcePath
impl Eq for SourcePath
impl StructuralPartialEq for SourcePath
Auto Trait Implementations§
impl Freeze for SourcePath
impl RefUnwindSafe for SourcePath
impl Send for SourcePath
impl Sync for SourcePath
impl Unpin for SourcePath
impl UnwindSafe for SourcePath
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