pub struct Entry<'owner> { /* private fields */ }Implementations§
Source§impl<'owner> Entry<'owner>
impl<'owner> Entry<'owner>
Sourcepub fn split(bytes: &[u8]) -> Option<(&[u8], &[u8], &[u8])>
pub fn split(bytes: &[u8]) -> Option<(&[u8], &[u8], &[u8])>
Splits one CRLF-terminated field without validating its name or value.
Admitted sections retain their grammar proof; arbitrary input returns None
when a required delimiter is missing. The value retains its original OWS.
pub fn name(&self) -> &'owner [u8] ⓘ
pub fn value(&self) -> &'owner [u8] ⓘ
pub const fn name_span(&self) -> Span
pub const fn value_span(&self) -> Span
pub const fn line_span(&self) -> Span
Trait Implementations§
impl<'owner> Copy for Entry<'owner>
impl<'owner> Eq for Entry<'owner>
impl<'owner> StructuralPartialEq for Entry<'owner>
Auto Trait Implementations§
impl<'owner> Forget for Entry<'owner>
impl<'owner> Freeze for Entry<'owner>
impl<'owner> RefUnwindSafe for Entry<'owner>
impl<'owner> Send for Entry<'owner>
impl<'owner> Sync for Entry<'owner>
impl<'owner> Unpin for Entry<'owner>
impl<'owner> UnsafeUnpin for Entry<'owner>
impl<'owner> UnwindSafe for Entry<'owner>
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