MCPcopy Create free account
hub / github.com/DioxusLabs/dioxus-components / as_ref

Method as_ref

primitives/src/selection.rs:36–38  ·  view source on GitHub ↗

Downcast this value to its concrete type.

(&self)

Source from the content-addressed store, hash-verified

34
35 /// Downcast this value to its concrete type.
36 pub(crate) fn as_ref<T: PartialEq + 'static>(&self) -> Option<&T> {
37 self.as_any().downcast_ref::<T>()
38 }
39}
40
41impl PartialEq for RcPartialEqValue {

Callers 6

VirtualListFunction · 0.80
use_itemFunction · 0.80
sortable_item_keyFunction · 0.80
ToastFunction · 0.80
AvatarImageFunction · 0.80
DragAndDropListFunction · 0.80

Calls 1

as_anyMethod · 0.45

Tested by

no test coverage detected