Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ get
Method
get
crates/common/src/atomic.rs:73–75 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
71
}
72
73
pub fn get(&self) -> Option<NonNull<T>> {
74
NonNull::new(self.inner.load(Ordering::Acquire))
75
}
76
77
pub fn set(&self, value: NonNull<T>) -> Result<(), NonNull<T>> {
78
let exchange = self.inner.compare_exchange(
Callers
15
parse_part_in_brackets
Method · 0.45
bytes_to_int
Function · 0.45
get_or_try_init
Method · 0.45
get_prev
Method · 0.45
get_next
Method · 0.45
set_prev
Method · 0.45
set_next
Method · 0.45
is_locked
Method · 0.45
is_exclusive
Method · 0.45
try_upgrade
Method · 0.45
try_lock_shared_recursive
Method · 0.45
lock_internal
Method · 0.45
Calls
2
new
Function · 0.85
load
Method · 0.45
Tested by
4
test_attribute_ex_call_uses_plain_load_attr
Function · 0.36
test_simple_attribute_call_keeps_method_load
Function · 0.36
test_fstring_adjacent_literals_are_merged
Function · 0.36
test_empty_fstring_literals_are_elided_around_interpolation
Function · 0.36