Method
floating
(mut self, f: impl for<'a> FnOnce(&'a mut elements::FloatingBuilder) -> &'a mut elements::FloatingBuilder)
Source from the content-addressed store, hash-verified
| 173 | /// Configures floating properties using a closure. |
| 174 | #[inline] |
| 175 | pub fn floating(mut self, f: impl for<'a> FnOnce(&'a mut elements::FloatingBuilder) -> &'a mut elements::FloatingBuilder) -> Self { |
| 176 | let mut builder = elements::FloatingBuilder { config: self.inner.floating }; |
| 177 | f(&mut builder); |
| 178 | self.inner.floating = builder.config; |
| 179 | self |
| 180 | } |
| 181 | |
| 182 | /// Configures border properties using a closure. |
| 183 | #[inline] |