From b4b022940b908d8fe490b9f4f68bc60dcfb76cd2 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Mon, 19 Dec 2022 01:16:35 +0100 Subject: Syntax and example sections --- library/src/layout/container.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'library/src/layout/container.rs') diff --git a/library/src/layout/container.rs b/library/src/layout/container.rs index 4b58434b..5df6b2dc 100644 --- a/library/src/layout/container.rs +++ b/library/src/layout/container.rs @@ -7,8 +7,10 @@ use crate::prelude::*; /// # Parameters /// - body: Content (positional) /// The contents of the box. +/// /// - width: Rel (named) /// The width of the box. +/// /// - height: Rel (named) /// The height of the box. /// @@ -78,11 +80,14 @@ impl Inline for BoxNode {} /// # Parameters /// - body: Content (positional) /// The contents of the block. +/// /// - spacing: Spacing (named, settable) /// The spacing around this block. +/// /// - above: Spacing (named, settable) /// The spacing between the previous and this block. Takes precedence over /// `spacing`. +/// /// - below: Spacing (named, settable) /// The spacing between this block and the following one. Takes precedence /// over `spacing`. -- cgit v1.2.3