diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-08-02 22:05:49 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-08-02 22:05:49 +0200 |
| commit | 266d457292e7461d448f9141030028ea68b573d1 (patch) | |
| tree | ff3ff3cc289d34040db421b6a7faa1f2aa402b05 /src/func.rs | |
| parent | cbbc46215fe0a0ad8a50e991ec442890b8eadc0a (diff) | |
Refactor model into tree 🛒
Diffstat (limited to 'src/func.rs')
| -rw-r--r-- | src/func.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/func.rs b/src/func.rs index d3bc13cc..afc796ae 100644 --- a/src/func.rs +++ b/src/func.rs @@ -11,7 +11,7 @@ pub mod prelude { pub use crate::layout::Command::{self, *}; pub use crate::style::{LayoutStyle, PageStyle, TextStyle}; pub use crate::syntax::expr::*; - pub use crate::syntax::model::SyntaxModel; + pub use crate::syntax::tree::SyntaxTree; pub use crate::syntax::span::{Span, Spanned}; pub use crate::syntax::value::*; pub use super::OptionExt; @@ -132,11 +132,11 @@ macro_rules! function { }; (@layout($name:ident) layout($this:ident, $ctx:ident, $feedback:ident) $code:block) => { - impl $crate::syntax::model::Model for $name { + impl $crate::layout::Layout for $name { fn layout<'a, 'b, 't>( #[allow(unused)] &'a $this, #[allow(unused)] mut $ctx: $crate::layout::LayoutContext<'b>, - ) -> $crate::layout::DynFuture<'t, $crate::Pass<$crate::layout::Commands<'a>>> + ) -> $crate::DynFuture<'t, $crate::Pass<$crate::layout::Commands<'a>>> where 'a: 't, 'b: 't, |
