pub struct SimdJsonCodec;Available on crate feature
simd only.Expand description
SIMD-accelerated JSON codec using sonic-rs
This codec uses SIMD instructions for faster JSON parsing. Falls back to standard serde_json on unsupported platforms.
Implementations§
Source§impl SimdJsonCodec
impl SimdJsonCodec
Trait Implementations§
Source§impl Clone for SimdJsonCodec
impl Clone for SimdJsonCodec
Source§fn clone(&self) -> SimdJsonCodec
fn clone(&self) -> SimdJsonCodec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Codec for SimdJsonCodec
impl Codec for SimdJsonCodec
Source§fn decode<T: DeserializeOwned>(&self, bytes: &[u8]) -> CodecResult<T>
fn decode<T: DeserializeOwned>(&self, bytes: &[u8]) -> CodecResult<T>
Decode bytes to a value
Source§fn content_type(&self) -> &'static str
fn content_type(&self) -> &'static str
Get the content type for this codec (e.g., “application/json”)
Source§fn supports_streaming(&self) -> bool
fn supports_streaming(&self) -> bool
Check if this codec supports streaming
Source§impl Debug for SimdJsonCodec
impl Debug for SimdJsonCodec
Source§impl Default for SimdJsonCodec
impl Default for SimdJsonCodec
Source§fn default() -> SimdJsonCodec
fn default() -> SimdJsonCodec
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SimdJsonCodec
impl RefUnwindSafe for SimdJsonCodec
impl Send for SimdJsonCodec
impl Sync for SimdJsonCodec
impl Unpin for SimdJsonCodec
impl UnsafeUnpin for SimdJsonCodec
impl UnwindSafe for SimdJsonCodec
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