Struct serialize_to_javascript::Options
source · [−]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 · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more