MlbendHuggingface.text_of_file: def of mlbend-huggingface@0.1.1.0 Import: import mlbend-huggingface@0.1.1.0/main.bend as MlbendHuggingface Lines 150-156 of mlbend-huggingface@0.1.1.0/main.bend: https://jend.leeeet.dev/read.txt?path=mlbend-huggingface@0.1.1.0/main.bend&start_line=150&end_line=156 import Base import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes # The text of a file that may be there. def text_of_file(r: Result<&1, &1, Err, Bytes.Bytes>) -> Result<&1, &1, Err, String>: match r: case Fail{e}: Fail{e} case Done{b}: Done{Bytes.to_string(b)} Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=bend-kit-bytes@0.3.3.0/bytes.bend&name=Bytes https://jend.leeeet.dev/definition.txt?path=bend-kit-bytes@0.3.3.0/bytes.bend&name=to_string https://jend.leeeet.dev/definition.txt?path=mlbend-huggingface@0.1.1.0/main.bend&name=Err