MCPcopy Create free account
hub / github.com/donkeyteethUX/iced_plot / map

Method map

src/plot_overlay.rs:102–115  ·  view source on GitHub ↗

Map the overlay's message type into another message type.

(self, f: impl Fn(Message) -> B + 'a)

Source from the content-addressed store, hash-verified

100
101 /// Map the overlay's message type into another message type.
102 pub fn map<B>(self, f: impl Fn(Message) -> B + 'a) -> PlotOverlay<'a, B>
103 where
104 B: 'a,
105 Message: 'a,
106 {
107 PlotOverlay {
108 element: self.element.map(f),
109 anchor_position: self.anchor_position,
110 anchor_position_transform: self.anchor_position_transform,
111 anchor_offset: self.anchor_offset,
112 align_to_anchor_vertical: self.align_to_anchor_vertical,
113 align_to_anchor_horizontal: self.align_to_anchor_horizontal,
114 }
115 }
116}
117
118pub(crate) fn positioned_overlay<'a, Message>(

Callers 15

rebuild_from_widgetMethod · 0.80
mouse_interactionMethod · 0.80
binding_descriptionsMethod · 0.80
submit_requestFunction · 0.80
ensure_stagingMethod · 0.80
ensure_targetMethod · 0.80
handle_hover_pickMethod · 0.80
view_plot_areaMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected