Expand description
Optional settings to pass to the templating system.
Fields
freeze: bool
If the parsed JSON will be frozen with Object.freeze()
.
buf: usize
Extra amount of bytes to allocate to the String buffer during serialization.
Note: This is not the total buffer size, but the extra buffer size created. By default the buffer size will already be enough to not need to allocate more than once for input that does not need escaping. Therefore, this extra buffer is more of “how many bytes of escaped characters do I want to prepare for?”
Trait Implementations
impl Copy for Options
impl Eq for Options
impl StructuralEq for Options
impl StructuralPartialEq for Options
Auto Trait Implementations
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.