Struct dioxus_katex::UseKatex
source · [−]pub struct UseKatex { /* private fields */ }Expand description
A hook which keeping the context of KaTeX formula.
Implementations
sourceimpl UseKatex
impl UseKatex
sourcepub fn get_config(&self) -> Ref<'_, KaTeXOptions>
pub fn get_config(&self) -> Ref<'_, KaTeXOptions>
Get all config of KaTeX formula.
sourcepub fn get_config_mut(&self) -> RefMut<'_, KaTeXOptions>
pub fn get_config_mut(&self) -> RefMut<'_, KaTeXOptions>
Get the mutable reference of all config.
sourcepub fn set_inline_mode(&self)
pub fn set_inline_mode(&self)
Set the formula to inline mode.
sourcepub fn set_display_mode(&self)
pub fn set_display_mode(&self)
Set the formula to display mode.
sourcepub fn needs_update(&self)
pub fn needs_update(&self)
Notify the scheduler to re-render the component.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for UseKatex
impl !Send for UseKatex
impl !Sync for UseKatex
impl Unpin for UseKatex
impl !UnwindSafe for UseKatex
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more