core.pattern-covers-tag
- description
- Whether the pattern matches every value of the variant tag (for the exhaustiveness check). Booleans use the tags "true" / "false"
- type
Fn(pattern: @core.pattern, tag: String) -> Boolean
- expression
fn(pattern$0, tag$1) => match $0 { #any(_) => true, #bind(bind$10) => true, #variant(variant$11) => @core.and( left: @core.equal(left: $11.tag, right: $1), right: @core.pattern-irrefutable(pattern: $11.payload) ), #boolean(b$12) => match $12 { true => @core.equal(left: $1, right: "true"), false => @core.equal(left: $1, right: "false") }, _ => false }- visibility
- public
core.pattern-covers-tag (project definy, branch auto-release, snapshot oiQgPqhJm-TbM4kexXeRHBaJB_tS7gwBSewII64P-44) id: 3nGGI1Dt0Tek57jcWL9gdIezpclvHw5yf1ZmTkwUoME content hash: 8GGJ-ZHNegdOXTyI5Wyau_Rp8ap1tpYlhxk5EGa-F2E