pub struct UsePrism { /* private fields */ }Expand description
A hook which keeping the context of KaTeX formula.
Implementations§
Source§impl UsePrism
impl UsePrism
Sourcepub fn get_config(&self) -> Ref<'_, PrismOptions>
pub fn get_config(&self) -> Ref<'_, PrismOptions>
Get all config of KaTeX formula.
Sourcepub fn get_language(&self) -> String
pub fn get_language(&self) -> String
Get all config of KaTeX formula.
Sourcepub fn set_language(&self, language: &str)
pub fn set_language(&self, language: &str)
Get all config of KaTeX formula.
Sourcepub fn get_config_mut(&self) -> RefMut<'_, PrismOptions>
pub fn get_config_mut(&self) -> RefMut<'_, PrismOptions>
Get the mutable reference of all config.
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 UsePrism
impl !RefUnwindSafe for UsePrism
impl !Send for UsePrism
impl !Sync for UsePrism
impl Unpin for UsePrism
impl !UnwindSafe for UsePrism
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