Function optional_placement

Source
pub fn optional_placement<'a, L: Layoutable<C> + 'a, C: PixelColor + 'a>(
    target: &'a mut Option<Rectangle>,
    layoutable: L,
) -> impl Layoutable<C> + 'a
Expand description

Updates the placement onto a Option

ยงArguments

  • target: target variable to update with the found placement informations
  • layoutable: layoutable to be watched

returns: impl Layoutable+Sized