MCPcopy Create free account
hub / github.com/DioxusLabs/dioxus / eval

Method eval

packages/document/src/document.rs:122–145  ·  view source on GitHub ↗
(&self, _: String)

Source from the content-addressed store, hash-verified

120
121impl Document for NoOpDocument {
122 fn eval(&self, _: String) -> Eval {
123 let owner = generational_box::Owner::default();
124 struct NoOpEvaluator;
125 impl Evaluator for NoOpEvaluator {
126 fn poll_join(
127 &mut self,
128 _: &mut std::task::Context<'_>,
129 ) -> std::task::Poll<Result<serde_json::Value, EvalError>> {
130 std::task::Poll::Ready(Err(EvalError::Unsupported))
131 }
132
133 fn poll_recv(
134 &mut self,
135 _: &mut std::task::Context<'_>,
136 ) -> std::task::Poll<Result<serde_json::Value, EvalError>> {
137 std::task::Poll::Ready(Err(EvalError::Unsupported))
138 }
139
140 fn send(&self, _data: serde_json::Value) -> Result<(), EvalError> {
141 Err(EvalError::Unsupported)
142 }
143 }
144 Eval::new(owner.insert(Box::new(NoOpEvaluator)))
145 }
146
147 fn set_title(&self, _: String) {}
148 fn create_meta(&self, _: MetaProps) {}

Callers 3

set_titleMethod · 0.45
create_head_elementMethod · 0.45
evalFunction · 0.45

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected