Struct jrsonnet_evaluator::function::CallLocation
source · pub struct CallLocation<'l>(pub Option<&'l ExprLocation>);
Expand description
Function callsite location. Either from other jsonnet code, specified by expression location, or from native (without location).
Tuple Fields§
§0: Option<&'l ExprLocation>
Implementations§
source§impl<'l> CallLocation<'l>
impl<'l> CallLocation<'l>
sourcepub const fn new(loc: &'l ExprLocation) -> Self
pub const fn new(loc: &'l ExprLocation) -> Self
Construct new location for calls coming from specified jsonnet expression location.
source§impl CallLocation<'static>
impl CallLocation<'static>
Trait Implementations§
source§impl<'l> Clone for CallLocation<'l>
impl<'l> Clone for CallLocation<'l>
source§fn clone(&self) -> CallLocation<'l>
fn clone(&self) -> CallLocation<'l>
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 more