Miscellaneous method updates / QoL changes
Created by: huntergoldstein
Changes introduced by this pull request:
-
WordToken::StringMethod
now has an internalstruct
which manages the logic for string methods - Changed
slice_string
toslice
and allowed any input that satisfiesAsRef<str>
State: Good to go!
Aside: I'm wondering if WordToken
could be benefited from being more token-like: more lightweight than they are now. For example, instead of having an ArrayProcess
that stores a string that will be tokenized later, we can just have an ArrayProcessBegin
and ArrayProcessEnd
then tokenize the contents.