Map the overlay's message type into another message type.
(self, f: impl Fn(Message) -> B + 'a)
| 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 | |
| 118 | pub(crate) fn positioned_overlay<'a, Message>( |
no outgoing calls
no test coverage detected