Trait typst::foundations::Fold
source · pub trait Fold {
// Required method
fn fold(self, outer: Self) -> Self;
}Expand description
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.
#set rect(stroke: red)
#set rect(stroke: 4pt)
#rect()
Required Methods§
Object Safety§
This trait is not object safe.