Download rust/crates/hyperkitty-ast/src/lib.rs from Snapkitty/hyperkitty-constraint-dsl: direct link, hf CLI and curl.
- Browser
- Download file 489 Bytes
-
https://huggingface.co/Snapkitty/hyperkitty-constraint-dsl/resolve/main/rust/crates/hyperkitty-ast/src/lib.rs
- Command line
-
hf download hf://Snapkitty/hyperkitty-constraint-dsl/rust/crates/hyperkitty-ast/src/lib.rs
-
curl -L -o lib.rs https://huggingface.co/Snapkitty/hyperkitty-constraint-dsl/resolve/main/rust/crates/hyperkitty-ast/src/lib.rs
489 Bytes
| //! Inverted AST Security Model | |
| //! | |
| //! Payload nodes (weight=0) cannot control routing authority. | |
| //! Structural nodes (weight=1) carry authority. | |
| pub mod nodes; | |
| pub mod weights; | |
| pub mod validation; | |
| pub use hyperkitty_core::{Error, Result}; | |
| pub use nodes::{AstNode, NodeType}; | |
| mod tests { | |
| use super::*; | |
| fn node_creation() { | |
| let node = AstNode::new(NodeType::Intent, "test"); | |
| assert!(node.weight() > 0.0); | |
| } | |
| } | |