pub struct Essences<'a, const N: usize, const XML_NORMALIZED: bool = false> { /* private fields */ }Expand description
One incremental MIME grammar pass and fixed, allocation-free comparisons against known type/subtype pairs. Parameters remain syntax-checked but do not participate in this comparison. This is not full MIME-value equality.
RFC2045 §§2 and 5.1: type/subtype are case-insensitive; comments and linear whitespace separate tokens. Token fragments cannot be joined across CFWS. https://www.rfc-editor.org/rfc/rfc2045.html#section-5.1
Implementations§
Source§impl<'a, const N: usize, const XML_NORMALIZED: bool> Essences<'a, N, XML_NORMALIZED>
impl<'a, const N: usize, const XML_NORMALIZED: bool> Essences<'a, N, XML_NORMALIZED>
Sourcepub fn new(patterns: [(&'a str, &'a str); N]) -> Self
pub fn new(patterns: [(&'a str, &'a str); N]) -> Self
Borrows the caller’s known pairs without allocation or registration lookup. The number of pairs is a compile-time mechanism parameter.
Auto Trait Implementations§
impl<'a, const N: usize, const XML_NORMALIZED: bool> Freeze for Essences<'a, N, XML_NORMALIZED>
impl<'a, const N: usize, const XML_NORMALIZED: bool> RefUnwindSafe for Essences<'a, N, XML_NORMALIZED>
impl<'a, const N: usize, const XML_NORMALIZED: bool> Send for Essences<'a, N, XML_NORMALIZED>
impl<'a, const N: usize, const XML_NORMALIZED: bool> Sync for Essences<'a, N, XML_NORMALIZED>
impl<'a, const N: usize, const XML_NORMALIZED: bool> Unpin for Essences<'a, N, XML_NORMALIZED>
impl<'a, const N: usize, const XML_NORMALIZED: bool> UnsafeUnpin for Essences<'a, N, XML_NORMALIZED>
impl<'a, const N: usize, const XML_NORMALIZED: bool> UnwindSafe for Essences<'a, N, XML_NORMALIZED>
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