diff options
| author | Luis David Licea Torres <luislicea@hotmail.com> | 2023-06-12 04:46:34 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-12 12:46:34 +0200 |
| commit | 3284e7fac7c695e42fd2c666befd92742cac96be (patch) | |
| tree | d1467975caef1eabe6af30d0d1b6b3a8b88a9da1 /src | |
| parent | 93e6638bfe171e3c337876d2143e4e048cd8b279 (diff) | |
Support for inside and outside margins (#1308)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/model/styles.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/model/styles.rs b/src/model/styles.rs index 5b6430c2..23748a3f 100644 --- a/src/model/styles.rs +++ b/src/model/styles.rs @@ -720,6 +720,15 @@ impl<T: Resolve> Resolve for Option<T> { } /// A property that is folded to determine its final value. +/// +/// In the example below, the chain of stroke values is folded into a single +/// value: `4pt + red`. +/// +/// ```example +/// #set rect(stroke: red) +/// #set rect(stroke: 4pt) +/// #rect() +/// ``` pub trait Fold { /// The type of the folded output. type Output; |
