organic/src/wasm/latex_environment.rs
Tom Alexander e499169f0e
Some checks failed
clippy Build clippy has failed
rust-build Build rust-build has failed
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-test Build rust-test has succeeded
Fix imports for wasm_test.
2023-12-27 08:37:34 -05:00

35 lines
802 B
Rust

use std::marker::PhantomData;
use crate::types::LatexEnvironment;
use serde::Deserialize;
use serde::Serialize;
use super::macros::to_wasm;
use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm;
use crate::wasm::to_wasm::ToWasmStandardProperties;
#[derive(Debug, Serialize)]
#[serde(tag = "ast_node")]
#[serde(rename = "org-data")]
pub(crate) struct WasmLatexEnvironment<'s> {
standard_properties: WasmStandardProperties,
children: Vec<()>,
phantom: PhantomData<&'s ()>,
}
to_wasm!(
WasmLatexEnvironment<'s>,
LatexEnvironment<'s>,
original,
wasm_context,
standard_properties,
{
Ok(WasmLatexEnvironment {
standard_properties,
children: Vec::new(),
phantom: PhantomData,
})
}
);