@@ -2,8 +2,8 @@ use crate::{Array, Boxed, Complex, SubSide, Uiua, Value};
22
33pub struct Fill < ' a > {
44 env : & ' a Uiua ,
5- value_fill : fn ( env : & ' a Uiua ) -> Option < & ' a FillValue > ,
6- other_value_fill : fn ( env : & ' a Uiua ) -> Option < & ' a FillValue > ,
5+ value : fn ( env : & ' a Uiua ) -> Option < & ' a FillValue > ,
6+ other_value : fn ( env : & ' a Uiua ) -> Option < & ' a FillValue > ,
77 other_error : & ' static str ,
88}
99
@@ -44,21 +44,21 @@ impl<'a> Fill<'a> {
4444 pub fn new ( env : & ' a Uiua ) -> Self {
4545 Self {
4646 env,
47- value_fill : Uiua :: value_fill,
48- other_value_fill : Uiua :: value_unfill,
47+ value : Uiua :: value_fill,
48+ other_value : Uiua :: value_unfill,
4949 other_error : ". An unfill is set, but not a normal fill." ,
5050 }
5151 }
5252 pub fn new_un ( env : & ' a Uiua ) -> Self {
5353 Self {
5454 env,
55- value_fill : Uiua :: value_unfill,
56- other_value_fill : Uiua :: value_fill,
55+ value : Uiua :: value_unfill,
56+ other_value : Uiua :: value_fill,
5757 other_error : ". A normal fill is set, but not an unfill." ,
5858 }
5959 }
6060 pub fn value ( & self ) -> Option < & FillValue > {
61- ( self . value_fill ) ( self . env )
61+ ( self . value ) ( self . env )
6262 }
6363 fn value_map < U > (
6464 & self ,
@@ -178,7 +178,7 @@ impl<'a> Fill<'a> {
178178 Some ( Value :: Complex ( _) ) => ". A complex fill is set, but it is not a scalar." ,
179179 Some ( Value :: Box ( _) ) => ". A box fill is set, but it is not a scalar." ,
180180 None => {
181- if ( self . other_value_fill ) ( self . env ) . is_some ( ) {
181+ if ( self . other_value ) ( self . env ) . is_some ( ) {
182182 self . other_error
183183 } else {
184184 ""
@@ -197,7 +197,7 @@ impl<'a> Fill<'a> {
197197 }
198198 Some ( Value :: Box ( _) ) => ". A box fill is set, but the array is not boxed values." ,
199199 None => {
200- if ( self . other_value_fill ) ( self . env ) . is_some ( ) {
200+ if ( self . other_value ) ( self . env ) . is_some ( ) {
201201 self . other_error
202202 } else {
203203 ""
0 commit comments