Named.hub.from: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/ez/named.bend as Named Lines 200-209 of ezx@1.11.0.0/src/ez/named.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/ez/named.bend&start_line=200&end_line=209 import Base import ezx@1.11.0.0/src/ledger/manifest.bend as M # whether a source is a hub package added by a name with this name part, # whatever its version def hub.from(src: M.Source, +part: String) -> Bool: match src: case M.Hub{named}: String.eq(hub.part(named), part) case M.Git{_u, _rev, _tag, _root, _nar, _vend}: False{} case M.Member{_path, _named}: False{} Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.eq https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ez/named.bend&name=hub.part https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ledger/manifest.bend&name=Source