MCPcopy Index your code
hub / github.com/aiscriptdev/aiscript / new

Method new

aiscript-vm/src/object.rs:128–134  ·  view source on GitHub ↗
(position: u8, default_value: Value<'gc>)

Source from the content-addressed store, hash-verified

126
127impl<'gc> Parameter<'gc> {
128 pub fn new(position: u8, default_value: Value<'gc>) -> Self {
129 Parameter {
130 position,
131 default_value,
132 validators: Vec::new(),
133 }
134 }
135
136 pub fn validators(mut self, validators: Vec<Box<dyn Validator>>) -> Self {
137 self.validators = validators;

Callers

nothing calls this directly

Calls 1

lenMethod · 0.80

Tested by

no test coverage detected