Struct csv_diff::csv_headers::Headers
source ยท pub struct Headers { /* private fields */ }
Expand description
Holds both left and right CSV headers (if present).
The difference to HeadersParsed
is that this holds headers (if present) that have been parsed successfully.
Implementationsยง
sourceยงimpl Headers
impl Headers
sourcepub fn headers_left(&self) -> Option<&ByteRecord>
pub fn headers_left(&self) -> Option<&ByteRecord>
Return the successfully parsed headers of the left CSV (if present).
If the CSV has been parsed with has_headers(false)
,
this will return None
.
sourcepub fn headers_right(&self) -> Option<&ByteRecord>
pub fn headers_right(&self) -> Option<&ByteRecord>
Return the successfully parsed headers of the right CSV (if present).
If the CSV has been parsed with has_headers(false)
,
this will return None
.
Trait Implementationsยง
sourceยงimpl From<(Option<ByteRecord>, Option<ByteRecord>)> for Headers
impl From<(Option<ByteRecord>, Option<ByteRecord>)> for Headers
sourceยงfn from(
(headers_left, headers_right): (Option<ByteRecord>, Option<ByteRecord>)
) -> Self
fn from( (headers_left, headers_right): (Option<ByteRecord>, Option<ByteRecord>) ) -> Self
Converts to this type from the input type.
sourceยงimpl PartialEq for Headers
impl PartialEq for Headers
sourceยงimpl TryFrom<HeadersParsed> for Headers
impl TryFrom<HeadersParsed> for Headers
impl StructuralPartialEq for Headers
Auto Trait Implementationsยง
impl RefUnwindSafe for Headers
impl Send for Headers
impl Sync for Headers
impl Unpin for Headers
impl UnwindSafe for Headers
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