Struct jrsonnet_parser::SourceFile
source · pub struct SourceFile(_);
Expand description
Represents path to the file on the disk Directories shouldn’t be put here, as resolution for files differs from resolution for directories:
When file
is being resolved from SourceFile(a/b/c)
, it should be resolved to SourceFile(a/b/file)
,
however if it is being resolved from SourceDirectory(a/b/c)
, then it should be resolved to SourceDirectory(a/b/c/file)
Implementations§
Trait Implementations§
source§impl Debug for SourceFile
impl Debug for SourceFile
source§impl Display for SourceFile
impl Display for SourceFile
source§impl Hash for SourceFile
impl Hash for SourceFile
source§impl PartialEq<SourceFile> for SourceFile
impl PartialEq<SourceFile> for SourceFile
source§fn eq(&self, other: &SourceFile) -> bool
fn eq(&self, other: &SourceFile) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl SourcePathT for SourceFile
impl SourcePathT for SourceFile
source§fn is_default(&self) -> bool
fn is_default(&self) -> bool
This method should be checked by resolver before panicking with bad SourcePath input
if
true
- then resolver may threat this path as default, and default is usally a CWDfn path(&self) -> Option<&Path>
fn as_any(&self) -> &dyn Any
fn dyn_hash(&self, hasher: &mut dyn Hasher)
fn dyn_eq(&self, other: &dyn SourcePathT) -> bool
fn dyn_debug(&self, fmt: &mut Formatter<'_>) -> Result
source§impl Trace for SourceFile
impl Trace for SourceFile
impl Eq for SourceFile
impl StructuralEq for SourceFile
impl StructuralPartialEq for SourceFile
Auto Trait Implementations§
impl RefUnwindSafe for SourceFile
impl Send for SourceFile
impl Sync for SourceFile
impl Unpin for SourceFile
impl UnwindSafe for SourceFile
Blanket Implementations§
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more