Skip to main content

SyntaxStatic

Trait SyntaxStatic 

Source
pub trait SyntaxStatic {
    // Required method
    fn is_static(&self) -> bool;
}
Expand description

Syntactic staticness for Cheers markup.

Static nodes can be rendered without evaluating caller-provided Rust expressions. This is a conservative syntax-only property. Any Rust expression, component, or control-flow node is considered dynamic.

Required Methods§

Source

fn is_static(&self) -> bool

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§