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

Method to_owned_ordering

crates/vm/src/object/ext.rs:369–371  ·  view source on GitHub ↗
(&self, ordering: Ordering)

Source from the content-addressed store, hash-verified

367 }
368
369 pub fn to_owned_ordering(&self, ordering: Ordering) -> Option<PyRef<T>> {
370 self.deref_ordering(ordering).map(|x| x.to_owned())
371 }
372
373 /// # Safety
374 /// The caller is responsible to keep the returned PyRef alive

Calls 3

deref_orderingMethod · 0.80
mapMethod · 0.45
to_ownedMethod · 0.45

Tested by

no test coverage detected