diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-02-04 21:36:29 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-02-04 21:36:29 +0100 |
| commit | 751812f45141a7b2022d0dba138457f3c21950b0 (patch) | |
| tree | 8f5125f5c475313c460f4a98ec174c11cb0e9c02 /src/func.rs | |
| parent | e63ce52ae0d929506a1fa238477f039d14d53813 (diff) | |
Serialize layouts with serde ðŸ”
Diffstat (limited to 'src/func.rs')
| -rw-r--r-- | src/func.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/func.rs b/src/func.rs index 215de60f..88d08d2d 100644 --- a/src/func.rs +++ b/src/func.rs @@ -53,16 +53,16 @@ pub trait ParseFunc { /// body: Option<SyntaxModel>, /// } /// -/// parse(header, body, ctx, errors, decos) { -/// let body = body!(opt: body, ctx, errors, decos); -/// let hidden = header.args.pos.get::<bool>(errors) -/// .or_missing(errors, header.name.span, "hidden") +/// parse(header, body, ctx, f) { +/// let body = body!(opt: body, ctx, f); +/// let hidden = header.args.pos.get::<bool>(&mut f.errors) +/// .or_missing(&mut f.errors, header.name.span, "hidden") /// .unwrap_or(false); /// /// HiderFunc { body: if hidden { None } else { body } } /// } /// -/// layout(self, ctx, errors) { +/// layout(self, ctx, f) { /// match &self.body { /// Some(model) => vec![LayoutSyntaxModel(model)], /// None => vec![], |
