pub struct FieldRef<'a> { /* private fields */ }Expand description
One field, borrowed, with its position in the original section.
FieldSection::partition returns the fields a section does not take as FieldRefs, so that the next section reports errors at their original positions.
Implementations§
Trait Implementations§
impl<'a> Copy for FieldRef<'a>
Source§impl Debug for FieldRef<'_>
Shows the value’s length rather than its bytes, since values such as Authorization and Cookie carry credentials that must not reach logs.
impl Debug for FieldRef<'_>
Shows the value’s length rather than its bytes, since values such as Authorization and Cookie carry credentials that must not reach logs.
impl<'a> Eq for FieldRef<'a>
Source§impl<'a> Extend<FieldRef<'a>> for OwnedFields
impl<'a> Extend<FieldRef<'a>> for OwnedFields
Source§fn extend<I: IntoIterator<Item = FieldRef<'a>>>(&mut self, fields: I)
fn extend<I: IntoIterator<Item = FieldRef<'a>>>(&mut self, fields: I)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: T)
fn extend_one(&mut self, item: T)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl<'a> From<FieldRef<'a>> for OwnedField
impl<'a> From<FieldRef<'a>> for OwnedField
Source§impl<'a> FromIterator<FieldRef<'a>> for OwnedFields
impl<'a> FromIterator<FieldRef<'a>> for OwnedFields
impl<'a, S> IntoField<'a, S> for FieldRef<'a>
impl<'a, S> IntoField<'a, S> for &FieldRef<'a>
impl<'a> StructuralPartialEq for FieldRef<'a>
Auto Trait Implementations§
impl<'a> Forget for FieldRef<'a>
impl<'a> Freeze for FieldRef<'a>
impl<'a> RefUnwindSafe for FieldRef<'a>
impl<'a> Send for FieldRef<'a>
impl<'a> Sync for FieldRef<'a>
impl<'a> Unpin for FieldRef<'a>
impl<'a> UnsafeUnpin for FieldRef<'a>
impl<'a> UnwindSafe for FieldRef<'a>
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