Skip to content

Commit

Permalink
Add doc link
Browse files Browse the repository at this point in the history
Co-authored-by: Olivier Goffart <olivier.goffart@slint-ui.com>
  • Loading branch information
tronical and ogoffart committed Jul 22, 2022
1 parent a5cd0a7 commit 3276d2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helper_crates/vtable/src/vrc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ impl<VTable: VTableMetaDropInPlace + 'static> VRc<VTable, Dyn> {
/// that, you need to provide a mapping function `map_fn` in which you need to provide and return a
/// pinned reference to the object you would like to map. The returned `VRcMapped` allows obtaining
/// that pinned reference again using [`VRcMapped::as_pin_ref`].
/// This works similar to `VRc::map` except that it works on a type-erased VRc.
/// This works similar to [`VRc::map`] except that it works on a type-erased VRc.
pub fn map_dyn<MappedType: ?Sized>(
this: Self,
map_fn: impl for<'r> FnOnce(Pin<VRef<'r, VTable>>) -> Pin<&'r MappedType>,
Expand Down

0 comments on commit 3276d2b

Please sign in to comment.