pub struct SimdXmlProcessor { /* private fields */ }Expand description
SIMD XML processor for fast XML parsing
Provides SIMD-accelerated string operations for RDF/XML streaming processing. Uses SIMD instructions for fast character scanning and pattern matching.
Implementations§
Source§impl SimdXmlProcessor
impl SimdXmlProcessor
Sourcepub fn find_special_char(&self, data: &[u8]) -> Option<usize>
pub fn find_special_char(&self, data: &[u8]) -> Option<usize>
SIMD-accelerated scan for XML special characters Returns the index of the first special character or None
Sourcepub fn is_valid_utf8(&self, data: &[u8]) -> bool
pub fn is_valid_utf8(&self, data: &[u8]) -> bool
SIMD-accelerated UTF-8 validation Returns true if the data is valid UTF-8
Sourcepub fn trim_whitespace<'a>(&self, data: &'a [u8]) -> &'a [u8] ⓘ
pub fn trim_whitespace<'a>(&self, data: &'a [u8]) -> &'a [u8] ⓘ
SIMD-accelerated whitespace trimming Returns slice with leading/trailing whitespace removed
Sourcepub fn find_colon(&self, data: &[u8]) -> Option<usize>
pub fn find_colon(&self, data: &[u8]) -> Option<usize>
SIMD-accelerated scan for namespace prefix separator ‘:’
Sourcepub fn parse_qname<'a>(&self, qname: &'a [u8]) -> (&'a [u8], &'a [u8])
pub fn parse_qname<'a>(&self, qname: &'a [u8]) -> (&'a [u8], &'a [u8])
Parse a qualified name (prefix:localname) into parts
Sourcepub fn expand_name<'a>(
&self,
prefix: &'a [u8],
local: &'a [u8],
namespaces: &HashMap<String, String>,
) -> Option<String>
pub fn expand_name<'a>( &self, prefix: &'a [u8], local: &'a [u8], namespaces: &HashMap<String, String>, ) -> Option<String>
Expand a prefixed name using namespace mappings
Sourcepub fn ensure_buffer_capacity(&mut self, capacity: usize)
pub fn ensure_buffer_capacity(&mut self, capacity: usize)
Resize internal buffer for larger operations
Trait Implementations§
Source§impl Clone for SimdXmlProcessor
impl Clone for SimdXmlProcessor
Source§fn clone(&self) -> SimdXmlProcessor
fn clone(&self) -> SimdXmlProcessor
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 Debug for SimdXmlProcessor
impl Debug for SimdXmlProcessor
Auto Trait Implementations§
impl Freeze for SimdXmlProcessor
impl RefUnwindSafe for SimdXmlProcessor
impl Send for SimdXmlProcessor
impl Sync for SimdXmlProcessor
impl Unpin for SimdXmlProcessor
impl UnsafeUnpin for SimdXmlProcessor
impl UnwindSafe for SimdXmlProcessor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more