pub struct UseKatex { /* private fields */ }Expand description
A hook which keeping the context of KaTeX formula.
Implementations§
Source§impl 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 Freeze for UseKatex
impl !RefUnwindSafe for UseKatex
impl !Send for UseKatex
impl !Sync for UseKatex
impl Unpin for UseKatex
impl !UnwindSafe for UseKatex
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