MCPcopy Index your code
hub / github.com/RustPython/RustPython / as_inner

Method as_inner

crates/vm/src/builtins/set.rs:1329–1335  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1327 }
1328
1329 fn as_inner(&self) -> &PySetInner {
1330 match_class!(match self.object.as_object() {
1331 ref set @ PySet => &set.inner,
1332 ref frozen @ PyFrozenSet => &frozen.inner,
1333 _ => unreachable!("AnySet is always PySet or PyFrozenSet"), // should not be called.
1334 })
1335 }
1336}
1337
1338impl TryFromObject for AnySet {

Callers 2

merge_setMethod · 0.80
__rsub__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected