Enum serde_v8::SerializablePkg
source · pub enum SerializablePkg {
Primitive(Primitive),
Serializable(Box<dyn Serializable>),
}
Expand description
SerializablePkg exists to provide a fast path for op returns, allowing them to avoid boxing primtives (ints/floats/bool/unit/…)
Variants
Primitive(Primitive)
Serializable(Box<dyn Serializable>)
Implementations
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for SerializablePkg
impl !Send for SerializablePkg
impl !Sync for SerializablePkg
impl Unpin for SerializablePkg
impl !UnwindSafe for SerializablePkg
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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