MCPcopy Create free account

hub / github.com/Kimundi/owning-ref-rs / functions

Functions76 in github.com/Kimundi/owning-ref-rs

↓ 30 callersMethodmap
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 callersFunctionexample
()
src/lib.rs:1244
↓ 20 callersMethodmap_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 callersMethoderase_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 callersMethodas_ref
(&self)
src/lib.rs:980
↓ 4 callersMethodclone
(&self)
src/lib.rs:1062
↓ 4 callersMethodhash
(&self, state: &mut H)
src/lib.rs:1110
↓ 4 callersMethodmap_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 callersMethodmap_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 callersMethodtry_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 callersMethodtry_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 callersMethodborrow
(&self)
src/lib.rs:998
↓ 2 callersMethodderef
(&self)
src/lib.rs:829
↓ 2 callersMethodinto_erased
(self)
src/lib.rs:1204
↓ 2 callersMethodinto_owner
Discards the reference and retrieves the owner.
src/lib.rs:539
↓ 2 callersMethodtry_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 callersMethodmap_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
Methodas_mut
(&mut self)
src/lib.rs:992
Functionas_owner
()
src/lib.rs:1302
Methodas_owner
A reference to the underlying owner.
src/lib.rs:534
Methodas_owner_mut
A mutable reference to the underlying owner.
src/lib.rs:783
Functionborrow
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
Functioncmp
()
src/lib.rs:1424
Methodcmp
(&self, other: &Self)
src/lib.rs:1104
Methodderef_mut
(&mut self)
src/lib.rs:841
Functioneq
()
src/lib.rs:1417
Methodeq
(&self, other: &Self)
src/lib.rs:1090
Functionerased_owner
()
src/lib.rs:1327
Methodfmt
(&self, f: &mut fmt::Formatter)
src/lib.rs:1039
Functionfmt_debug
()
src/lib.rs:1319
Methodfrom
(owner: O)
src/lib.rs:1007
Functionhash
()
src/lib.rs:1438
Functioninto
()
src/lib.rs:1255
Functioninto_owner
()
src/lib.rs:1310
Functioninto_owning_ref
()
src/lib.rs:1984
Functionmap_chained
()
src/lib.rs:1286
Functionmap_chained_inference
()
src/lib.rs:1294
Functionmap_heap_ref
()
src/lib.rs:1272
Functionmap_mut_chained
()
src/lib.rs:1745
Functionmap_mut_heap_ref
()
src/lib.rs:1727
Functionmap_mut_offset_ref
()
src/lib.rs:1716
Functionmap_mut_static_ref
()
src/lib.rs:1734
Functionmap_offset_ref
()
src/lib.rs:1261
Functionmap_static_ref
()
src/lib.rs:1279
Functionmap_with_owner
()
src/lib.rs:1515
Functionmutate
()
src/lib.rs:1677
Functionnested
()
src/lib.rs:1599
Methodnew
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
Methodnew_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
Functionnew_deref
()
src/lib.rs:1249
Functionnew_deref_mut
()
src/lib.rs:1671
Methodnew_mut
Create a new mutable `OwningHandle` for a type that implements `ToHandleMut`.
src/lib.rs:881
Methodnew_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
Functionnon_static_erased_owner
()
src/lib.rs:1339
Functionowning_handle
()
src/lib.rs:1557
Functionowning_handle_mut_safe
()
src/lib.rs:1625
Functionowning_handle_safe
()
src/lib.rs:1616
Functionowning_handle_safe_2
()
src/lib.rs:1636
Functionpartial_cmp
()
src/lib.rs:1431
Methodpartial_cmp
(&self, other: &Self)
src/lib.rs:1098
Functionraii_locks
()
src/lib.rs:1358
Functionref_mut
()
src/lib.rs:2000
Methodto_handle
(x: *const Self)
src/lib.rs:1153
Methodto_handle_mut
(x: *const Self)
src/lib.rs:1158
Functiontotal_erase
()
src/lib.rs:1464
Functiontotal_erase_box
()
src/lib.rs:1481
Functiontry_map1
()
src/lib.rs:1495
Functiontry_map2
()
src/lib.rs:1505
Functiontry_map3
()
src/lib.rs:1964
Functiontry_map4
()
src/lib.rs:1974
Functiontry_map_mut
()
src/lib.rs:1761
Functiontry_map_with_owner_err
()
src/lib.rs:1537
Functiontry_map_with_owner_ok
()
src/lib.rs:1526
Methodtry_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
Functiontry_owning_handle_err
()
src/lib.rs:1583
Functiontry_owning_handle_ok
()
src/lib.rs:1568