pub struct FastPathDetector;Expand description
Fast path detector for common YAML patterns Fast path detector for common YAML patterns
Detects patterns that can be handled with optimized code paths.
Implementations§
Source§impl FastPathDetector
impl FastPathDetector
Sourcepub fn is_simple_scalar(s: &str) -> bool
pub fn is_simple_scalar(s: &str) -> bool
Check if a string is a simple unquoted scalar (no special characters)
Sourcepub fn is_simple_int(s: &str) -> bool
pub fn is_simple_int(s: &str) -> bool
Check if a string is a simple integer
Sourcepub fn is_simple_mapping_line(s: &str) -> bool
pub fn is_simple_mapping_line(s: &str) -> bool
Check if a line is likely to be a simple key-value pair
Sourcepub fn can_use_fast_path(content: &str) -> bool
pub fn can_use_fast_path(content: &str) -> bool
Detect if we can use a fast path for this document structure
Auto Trait Implementations§
impl Freeze for FastPathDetector
impl RefUnwindSafe for FastPathDetector
impl Send for FastPathDetector
impl Sync for FastPathDetector
impl Unpin for FastPathDetector
impl UnsafeUnpin for FastPathDetector
impl UnwindSafe for FastPathDetector
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