MCPcopy Create free account
hub / github.com/angular-rust/yew-components / update

Method update

src/button.rs:62–69  ·  view source on GitHub ↗
(&mut self, msg: Self::Message)

Source from the content-addressed store, hash-verified

60 }
61
62 fn update(&mut self, msg: Self::Message) -> ShouldRender {
63 match msg {
64 Msg::Clicked => {
65 self.props.onclick.emit(());
66 }
67 }
68 false
69 }
70
71 fn change(&mut self, props: Self::Properties) -> ShouldRender {
72 if self.props != props {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected