Struct katex::TrustCallback [−][src]
A callback function to determine whether to trust users' input.
It accepts TrustContext
and returns a bool
.
See OptsBuilder::trust_callback
.
Trait Implementations
impl Callback<TrustCallback> for TrustCallback
[src]
fn argument_count(&self) -> usize
[src]
fn call(
&self,
args: Vec<JsValue>
) -> Result<Result<JsValue, String>, ValueError>
[src]
&self,
args: Vec<JsValue>
) -> Result<Result<JsValue, String>, ValueError>
impl Clone for TrustCallback
[src]
fn clone(&self) -> TrustCallback
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TrustCallback
[src]
impl<F: Fn(TrustContext<'_>) -> bool + RefUnwindSafe + 'static> From<F> for TrustCallback
[src]
Auto Trait Implementations
impl RefUnwindSafe for TrustCallback
[src]
impl !Send for TrustCallback
[src]
impl !Sync for TrustCallback
[src]
impl Unpin for TrustCallback
[src]
impl UnwindSafe for TrustCallback
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,