pub struct RichStructure<'a> { /* private fields */ }Expand description
Rich structure.
Implementations§
Source§impl<'a> RichStructure<'a>
impl<'a> RichStructure<'a>
Sourcepub fn checksum(&self) -> u32
pub fn checksum(&self) -> u32
Calculate the checksum.
The checksum should be equal to the xor key.
Sourcepub fn encode(
&self,
records: &[RichRecord],
dest: &mut [u32],
) -> Result<usize, usize>
pub fn encode( &self, records: &[RichRecord], dest: &mut [u32], ) -> Result<usize, usize>
Encodes a new set of records.
If the destination does not have the right len, returns Err with the right len. Call encode again with destination of the returned len, destination is not modified.
Returns Ok with the len of the destination when encoding was successful.
Trait Implementations§
Source§impl<'a> Clone for RichStructure<'a>
impl<'a> Clone for RichStructure<'a>
Source§fn clone(&self) -> RichStructure<'a>
fn clone(&self) -> RichStructure<'a>
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<'a> Debug for RichStructure<'a>
impl<'a> Debug for RichStructure<'a>
impl<'a> Copy for RichStructure<'a>
Auto Trait Implementations§
impl<'a> Freeze for RichStructure<'a>
impl<'a> RefUnwindSafe for RichStructure<'a>
impl<'a> Send for RichStructure<'a>
impl<'a> Sync for RichStructure<'a>
impl<'a> Unpin for RichStructure<'a>
impl<'a> UnwindSafe for RichStructure<'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