summaryrefslogtreecommitdiff
path: root/src/library/boxed.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/library/boxed.rs')
-rw-r--r--src/library/boxed.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/library/boxed.rs b/src/library/boxed.rs
index 7333c50f..a4d059cb 100644
--- a/src/library/boxed.rs
+++ b/src/library/boxed.rs
@@ -3,17 +3,18 @@ use smallvec::smallvec;
use crate::func::prelude::*;
use super::maps::ExtentMap;
+
function! {
/// `box`: Layouts content into a box.
#[derive(Debug, PartialEq)]
- pub struct Boxed {
+ pub struct BoxFunc {
body: SyntaxTree,
map: ExtentMap<PSize>,
debug: Option<bool>,
}
parse(args, body, ctx) {
- Boxed {
+ BoxFunc {
body: parse!(optional: body, ctx).unwrap_or(SyntaxTree::new()),
map: ExtentMap::new(&mut args, false)?,
debug: args.get_key_opt::<bool>("debug")?,