Struct jrsonnet_parser::SourceVirtual
source · pub struct SourceVirtual(pub IStr);
Expand description
Represents virtual file, whose are located in memory, and shouldn’t be cached
It is used for –ext-code=…/–tla-code=…/standard library source code by default, and user can construct arbitrary values by hand, without asking import resolver
Tuple Fields§
§0: IStr
Trait Implementations§
source§impl Clone for SourceVirtual
impl Clone for SourceVirtual
source§fn clone(&self) -> SourceVirtual
fn clone(&self) -> SourceVirtual
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 SourceVirtual
impl Debug for SourceVirtual
source§impl Display for SourceVirtual
impl Display for SourceVirtual
source§impl Hash for SourceVirtual
impl Hash for SourceVirtual
source§impl PartialEq<SourceVirtual> for SourceVirtual
impl PartialEq<SourceVirtual> for SourceVirtual
source§fn eq(&self, other: &SourceVirtual) -> bool
fn eq(&self, other: &SourceVirtual) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl SourcePathT for SourceVirtual
impl SourcePathT for SourceVirtual
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 SourceVirtual
impl Trace for SourceVirtual
impl Eq for SourceVirtual
impl StructuralEq for SourceVirtual
impl StructuralPartialEq for SourceVirtual
Auto Trait Implementations§
impl RefUnwindSafe for SourceVirtual
impl !Send for SourceVirtual
impl !Sync for SourceVirtual
impl Unpin for SourceVirtual
impl UnwindSafe for SourceVirtual
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