MCPcopy Create free account
hub / github.com/dev-formata-io/stof / stack_var

Method stack_var

src/runtime/variable.rs:109–113  ·  view source on GitHub ↗

Stack var from this var (LoadVariable). This is the variable that gets loaded onto the stack. Not always a direct clone because of value types.

(&self, by_ref: bool)

Source from the content-addressed store, hash-verified

107 /// This is the variable that gets loaded onto the stack.
108 /// Not always a direct clone because of value types.
109 pub fn stack_var(&self, by_ref: bool) -> Self {
110 let mut clone = self.clone();
111 clone.val = self.val.duplicate(by_ref);
112 clone
113 }
114
115 #[inline]
116 /// Get a value from this variable.

Callers 3

execMethod · 0.80
execMethod · 0.80
execMethod · 0.80

Calls 2

duplicateMethod · 0.80
cloneMethod · 0.45

Tested by

no test coverage detected