pub struct DocxHandlebars { /* private fields */ }Expand description
主要的 DOCX Handlebars 处理器
Implementations§
Source§impl DocxHandlebars
impl DocxHandlebars
Sourcepub fn new() -> DocxHandlebars
pub fn new() -> DocxHandlebars
创建新的 DocxHandlebars 实例
Sourcepub fn get_template_variables(&self) -> Result<String, JsValue>
pub fn get_template_variables(&self) -> Result<String, JsValue>
获取模板中的变量列表
Trait Implementations§
Source§impl Default for DocxHandlebars
impl Default for DocxHandlebars
Source§impl From<DocxHandlebars> for JsValue
impl From<DocxHandlebars> for JsValue
Source§fn from(value: DocxHandlebars) -> Self
fn from(value: DocxHandlebars) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for DocxHandlebars
impl FromWasmAbi for DocxHandlebars
Source§impl IntoWasmAbi for DocxHandlebars
impl IntoWasmAbi for DocxHandlebars
Source§impl LongRefFromWasmAbi for DocxHandlebars
impl LongRefFromWasmAbi for DocxHandlebars
Source§impl OptionFromWasmAbi for DocxHandlebars
impl OptionFromWasmAbi for DocxHandlebars
Source§impl OptionIntoWasmAbi for DocxHandlebars
impl OptionIntoWasmAbi for DocxHandlebars
Source§impl RefFromWasmAbi for DocxHandlebars
impl RefFromWasmAbi for DocxHandlebars
Source§type Anchor = RcRef<DocxHandlebars>
type Anchor = RcRef<DocxHandlebars>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for DocxHandlebars
impl RefMutFromWasmAbi for DocxHandlebars
Source§impl TryFromJsValue for DocxHandlebars
impl TryFromJsValue for DocxHandlebars
Source§impl VectorFromWasmAbi for DocxHandlebars
impl VectorFromWasmAbi for DocxHandlebars
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[DocxHandlebars]>
Source§impl VectorIntoJsValue for DocxHandlebars
impl VectorIntoJsValue for DocxHandlebars
fn vector_into_jsvalue(vector: Box<[DocxHandlebars]>) -> JsValue
Source§impl VectorIntoWasmAbi for DocxHandlebars
impl VectorIntoWasmAbi for DocxHandlebars
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[DocxHandlebars]>) -> Self::Abi
Source§impl WasmDescribeVector for DocxHandlebars
impl WasmDescribeVector for DocxHandlebars
impl SupportsConstructor for DocxHandlebars
impl SupportsInstanceProperty for DocxHandlebars
impl SupportsStaticProperty for DocxHandlebars
Auto Trait Implementations§
impl Freeze for DocxHandlebars
impl !RefUnwindSafe for DocxHandlebars
impl Send for DocxHandlebars
impl Sync for DocxHandlebars
impl Unpin for DocxHandlebars
impl !UnwindSafe for DocxHandlebars
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.