Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Kimundi/owning-ref-rs
/ functions
Functions
76 in github.com/Kimundi/owning-ref-rs
⨍
Functions
76
◇
Types & classes
10
↓ 30 callers
Method
map
Converts `self` into a new owning reference that points at something reachable from the previous one. This can be a reference to a field of `U`, some
src/lib.rs:355
↓ 28 callers
Function
example
()
src/lib.rs:1244
↓ 20 callers
Method
map_mut
Converts `self` into a new _mutable_ owning reference that points at something reachable from the previous one. This can be a reference to a field of
src/lib.rs:632
↓ 10 callers
Method
erase_owner
Erases the concrete base type of the owner with a trait object. This allows mixing of owned references with different owner base types. # Example ``
src/lib.rs:522
↓ 7 callers
Method
as_ref
(&self)
src/lib.rs:980
↓ 4 callers
Method
clone
(&self)
src/lib.rs:1062
↓ 4 callers
Method
hash
(&self, state: &mut H)
src/lib.rs:1110
↓ 4 callers
Method
map_owner
Converts `self` into a new owning reference with a different owner type. The new owner type needs to still contain the original owner in some way so
src/lib.rs:467
↓ 4 callers
Method
map_owner_box
Converts `self` into a new owning reference where the owner is wrapped in an additional `Box<O>`. This can be used to safely erase the owner of any `
src/lib.rs:483
↓ 4 callers
Method
try_map
Tries to convert `self` into a new owning reference that points at something reachable from the previous one. This can be a reference to a field of `
src/lib.rs:419
↓ 4 callers
Method
try_map_mut
Tries to convert `self` into a new _mutable_ owning reference that points at something reachable from the previous one. This can be a reference to a
src/lib.rs:696
↓ 2 callers
Method
borrow
(&self)
src/lib.rs:998
↓ 2 callers
Method
deref
(&self)
src/lib.rs:829
↓ 2 callers
Method
into_erased
(self)
src/lib.rs:1204
↓ 2 callers
Method
into_owner
Discards the reference and retrieves the owner.
src/lib.rs:539
↓ 2 callers
Method
try_map_with_owner
Tries to convert `self` into a new owning reference that points at something reachable from the previous one. This can be a reference to a field of `
src/lib.rs:452
↓ 1 callers
Method
map_with_owner
Converts `self` into a new owning reference that points at something reachable from the previous one or from the owner itself. This can be a referenc
src/lib.rs:387
Method
as_mut
(&mut self)
src/lib.rs:992
Function
as_owner
()
src/lib.rs:1302
Method
as_owner
A reference to the underlying owner.
src/lib.rs:534
Method
as_owner_mut
A mutable reference to the underlying owner.
src/lib.rs:783
Function
borrow
FIXME: lifetime inference fails us, and we can't easily define a lifetime for a closure (see https://github.com/rust-lang/rust/issues/22340) So we use
src/lib.rs:1346
Function
cmp
()
src/lib.rs:1424
Method
cmp
(&self, other: &Self)
src/lib.rs:1104
Method
deref_mut
(&mut self)
src/lib.rs:841
Function
eq
()
src/lib.rs:1417
Method
eq
(&self, other: &Self)
src/lib.rs:1090
Function
erased_owner
()
src/lib.rs:1327
Method
fmt
(&self, f: &mut fmt::Formatter)
src/lib.rs:1039
Function
fmt_debug
()
src/lib.rs:1319
Method
from
(owner: O)
src/lib.rs:1007
Function
hash
()
src/lib.rs:1438
Function
into
()
src/lib.rs:1255
Function
into_owner
()
src/lib.rs:1310
Function
into_owning_ref
()
src/lib.rs:1984
Function
map_chained
()
src/lib.rs:1286
Function
map_chained_inference
()
src/lib.rs:1294
Function
map_heap_ref
()
src/lib.rs:1272
Function
map_mut_chained
()
src/lib.rs:1745
Function
map_mut_heap_ref
()
src/lib.rs:1727
Function
map_mut_offset_ref
()
src/lib.rs:1716
Function
map_mut_static_ref
()
src/lib.rs:1734
Function
map_offset_ref
()
src/lib.rs:1261
Function
map_static_ref
()
src/lib.rs:1279
Function
map_with_owner
()
src/lib.rs:1515
Function
mutate
()
src/lib.rs:1677
Function
nested
()
src/lib.rs:1599
Method
new
Creates a new owning reference from a owner initialized to the direct dereference of it. # Example ``` extern crate owning_ref; use owning_ref::Ownin
src/lib.rs:311
Method
new_assert_stable_address
Like `new`, but doesn’t require `O` to implement the `StableAddress` trait. Instead, the caller is responsible to make the same promises as implementi
src/lib.rs:326
Function
new_deref
()
src/lib.rs:1249
Function
new_deref_mut
()
src/lib.rs:1671
Method
new_mut
Create a new mutable `OwningHandle` for a type that implements `ToHandleMut`.
src/lib.rs:881
Method
new_with_fn
Create a new OwningHandle. The provided callback will be invoked with a pointer to the object owned by `o`, and the returned value is stored as the ob
src/lib.rs:893
Function
non_static_erased_owner
()
src/lib.rs:1339
Function
owning_handle
()
src/lib.rs:1557
Function
owning_handle_mut_safe
()
src/lib.rs:1625
Function
owning_handle_safe
()
src/lib.rs:1616
Function
owning_handle_safe_2
()
src/lib.rs:1636
Function
partial_cmp
()
src/lib.rs:1431
Method
partial_cmp
(&self, other: &Self)
src/lib.rs:1098
Function
raii_locks
()
src/lib.rs:1358
Function
ref_mut
()
src/lib.rs:2000
Method
to_handle
(x: *const Self)
src/lib.rs:1153
Method
to_handle_mut
(x: *const Self)
src/lib.rs:1158
Function
total_erase
()
src/lib.rs:1464
Function
total_erase_box
()
src/lib.rs:1481
Function
try_map1
()
src/lib.rs:1495
Function
try_map2
()
src/lib.rs:1505
Function
try_map3
()
src/lib.rs:1964
Function
try_map4
()
src/lib.rs:1974
Function
try_map_mut
()
src/lib.rs:1761
Function
try_map_with_owner_err
()
src/lib.rs:1537
Function
try_map_with_owner_ok
()
src/lib.rs:1526
Method
try_new
Create a new OwningHandle. The provided callback will be invoked with a pointer to the object owned by `o`, and the returned value is stored as the ob
src/lib.rs:911
Function
try_owning_handle_err
()
src/lib.rs:1583
Function
try_owning_handle_ok
()
src/lib.rs:1568