&mut self
not required for is_*
, most to_*
, check_*
, and opt_*
functions, and some others.
#46
Labels
&mut self
not required for is_*
, most to_*
, check_*
, and opt_*
functions, and some others.
#46
The
is_*
functions do not modify state at all, and having that reflected in their signature makes matches easier.All of the
to_*
,check_*
, andopt_*
functions do not modify state except for those involving strings (includingcheck_option
). It is probably still worth considering the pointer returning methods as mutable if they return mutable objects/pointers.The
abs_index
,get_top
,type_of
,typename_of
,raw_len
, andtypename_at
also don't mutate the state.There may be others I have missed.
The text was updated successfully, but these errors were encountered: