MCPcopy Create free account
hub / github.com/angular-rust/ux-components / get

Method get

src/elements/widget_component.rs:29–37  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

27
28impl<T: Default + OnDemandMarker> OnDemand<T> for Option<T> {
29 fn get(&mut self) -> &T {
30 match self {
31 None => {
32 let _ = mem::replace(self, Some(T::default()));
33 self.as_ref().unwrap()
34 }
35 Some(val) => val,
36 }
37 }
38}
39
40pub struct ActorChannel<T> {

Callers 15

mouseupMethod · 0.45
mousemoveMethod · 0.45
mousewheelMethod · 0.45
keyupMethod · 0.45
keydownMethod · 0.45
textinputMethod · 0.45
mouseupMethod · 0.45
mousemoveMethod · 0.45
mousewheelMethod · 0.45
keyupMethod · 0.45
keydownMethod · 0.45
textinputMethod · 0.45

Calls 3

insertMethod · 0.80
as_refMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected