pub struct FileTrailerRecord { /* private fields */ }Expand description
BAI2 file trailer record.
Implementations§
Source§impl FileTrailerRecord
impl FileTrailerRecord
Sourcepub const fn file_control_total(&self) -> Option<i128>
pub const fn file_control_total(&self) -> Option<i128>
Returns the optional file control total.
Sourcepub const fn group_count(&self) -> Option<usize>
pub const fn group_count(&self) -> Option<usize>
Returns the optional group count.
Sourcepub const fn record_count(&self) -> Option<usize>
pub const fn record_count(&self) -> Option<usize>
Returns the optional record count.
Sourcepub const fn validate_record_count(
&self,
actual: usize,
) -> Result<(), Bai2Error>
pub const fn validate_record_count( &self, actual: usize, ) -> Result<(), Bai2Error>
Validates a parsed logical record count against the trailer record count when present.
§Errors
Returns Bai2Error::InvalidCount when the expected count is present and differs.
Trait Implementations§
Source§impl Clone for FileTrailerRecord
impl Clone for FileTrailerRecord
Source§fn clone(&self) -> FileTrailerRecord
fn clone(&self) -> FileTrailerRecord
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FileTrailerRecord
impl Debug for FileTrailerRecord
Source§impl PartialEq for FileTrailerRecord
impl PartialEq for FileTrailerRecord
Source§impl TryFrom<&RawRecord> for FileTrailerRecord
impl TryFrom<&RawRecord> for FileTrailerRecord
impl Eq for FileTrailerRecord
impl StructuralPartialEq for FileTrailerRecord
Auto Trait Implementations§
impl Freeze for FileTrailerRecord
impl RefUnwindSafe for FileTrailerRecord
impl Send for FileTrailerRecord
impl Sync for FileTrailerRecord
impl Unpin for FileTrailerRecord
impl UnsafeUnpin for FileTrailerRecord
impl UnwindSafe for FileTrailerRecord
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