Core.len_err: def of bend-schema-lib@0.4.1.0 Import: import bend-schema-lib@0.4.1.0/core.bend as Core Lines 704-716 of bend-schema-lib@0.4.1.0/core.bend: https://jend.leeeet.dev/read.txt?path=bend-schema-lib@0.4.1.0/core.bend&start_line=704&end_line=716 import Base # At an SStrLen the shape comes first, as everywhere else: a value that is not # a string is NotString, a string out of its bounds is LengthNotIn, and a node # the codec refused to build or that is absent reads as it does at every kind. def len_err(+lo: Nat, +hi: Nat, r: Raw) -> Maybe<&2, Err>: match r: case RStr{+x}: in_err(str_len_ok(lo, hi, x), LengthNotIn{lo, hi}) case RMissing{}: here(Missing{}) case RTooBig{}: here(TooLarge{}) case _: here(NotString{}) Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=bend-schema-lib@0.4.1.0/core.bend&name=Err https://jend.leeeet.dev/definition.txt?path=bend-schema-lib@0.4.1.0/core.bend&name=Raw https://jend.leeeet.dev/definition.txt?path=bend-schema-lib@0.4.1.0/core.bend&name=Why https://jend.leeeet.dev/definition.txt?path=bend-schema-lib@0.4.1.0/core.bend&name=here https://jend.leeeet.dev/definition.txt?path=bend-schema-lib@0.4.1.0/core.bend&name=in_err https://jend.leeeet.dev/definition.txt?path=bend-schema-lib@0.4.1.0/core.bend&name=str_len_ok