Struct pelite::rich_structure::RichStructure
source · [−]pub struct RichStructure<'a> { /* private fields */ }
Expand description
Rich structure.
Implementations
sourceimpl<'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 records(&self) -> RichIter<'a>ⓘNotable traits for RichIter<'a>impl<'a> Iterator for RichIter<'a> type Item = RichRecord;
pub fn records(&self) -> RichIter<'a>ⓘNotable traits for RichIter<'a>impl<'a> Iterator for RichIter<'a> type Item = RichRecord;
Gets the records.
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
sourceimpl<'a> Clone for RichStructure<'a>
impl<'a> Clone for RichStructure<'a>
sourcefn clone(&self) -> RichStructure<'a>
fn clone(&self) -> RichStructure<'a>
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'a> Debug for RichStructure<'a>
impl<'a> Debug for RichStructure<'a>
impl<'a> Copy for RichStructure<'a>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more