Trait jrsonnet_parser::SourcePathT
source · pub trait SourcePathT: Trace + Debug + Display {
fn is_default(&self) -> bool;
fn 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;
}
Required Methods§
sourcefn 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 CWD