gioser

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 492HTML 238TOML 3CSS 11131 Definiciones

Make cache struct private

8acbcdb83479f818cbd11ea1380ecfebb0bbdba1 · por Emil Sjölander · (hace 7 años) · padre b1361e5c6 · ver el árbol en este commit

Delta semántico · 1

src/result.rs

  • cambió de firma def Cache pub

1 archivos · +1 −1

diff --git a/src/result.rs b/src/result.rs
index 59eea6ab5..268c026eb 100644
--- a/src/result.rs
+++ b/src/result.rs
@@ -18,7 +18,7 @@ pub struct Layout {
 }
 
 #[derive(Debug, Clone)]
-pub struct Cache {
+pub(crate) struct Cache {
     pub(crate) node_size: Size<Number>,
     pub(crate) parent_size: Size<Number>,
     pub(crate) perform_layout: bool,