Struct assembly_pack::common::CRCTreeNode
source · pub struct CRCTreeNode<D> {
pub crc: u32,
pub left: i32,
pub right: i32,
pub data: D,
}
Expand description
Node in a CRC tree
Fields§
§crc: u32
The CRC value of this file
left: i32
Binary tree node to the left
right: i32
Binary tree node to the right
data: D
The data in this node
Trait Implementations§
source§impl<D> Borrow<D> for CRCTreeNode<D>
impl<D> Borrow<D> for CRCTreeNode<D>
source§impl<D> BorrowMut<D> for CRCTreeNode<D>
impl<D> BorrowMut<D> for CRCTreeNode<D>
source§fn borrow_mut(&mut self) -> &mut D
fn borrow_mut(&mut self) -> &mut D
Mutably borrows from an owned value. Read more
source§impl<D: Clone> Clone for CRCTreeNode<D>
impl<D: Clone> Clone for CRCTreeNode<D>
source§fn clone(&self) -> CRCTreeNode<D>
fn clone(&self) -> CRCTreeNode<D>
Returns a copy 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<D: Debug> Debug for CRCTreeNode<D>
impl<D: Debug> Debug for CRCTreeNode<D>
source§impl<D> Deref for CRCTreeNode<D>
impl<D> Deref for CRCTreeNode<D>
source§impl<D> DerefMut for CRCTreeNode<D>
impl<D> DerefMut for CRCTreeNode<D>
source§impl<'de, D> Deserialize<'de> for CRCTreeNode<D>where
D: Deserialize<'de>,
impl<'de, D> Deserialize<'de> for CRCTreeNode<D>where D: Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<D: PartialEq> PartialEq<CRCTreeNode<D>> for CRCTreeNode<D>
impl<D: PartialEq> PartialEq<CRCTreeNode<D>> for CRCTreeNode<D>
source§fn eq(&self, other: &CRCTreeNode<D>) -> bool
fn eq(&self, other: &CRCTreeNode<D>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<D> Serialize for CRCTreeNode<D>where
D: Serialize,
impl<D> Serialize for CRCTreeNode<D>where D: Serialize,
impl<D: Copy> Copy for CRCTreeNode<D>
impl<D: Eq> Eq for CRCTreeNode<D>
impl<D> StructuralEq for CRCTreeNode<D>
impl<D> StructuralPartialEq for CRCTreeNode<D>
Auto Trait Implementations§
impl<D> RefUnwindSafe for CRCTreeNode<D>where D: RefUnwindSafe,
impl<D> Send for CRCTreeNode<D>where D: Send,
impl<D> Sync for CRCTreeNode<D>where D: Sync,
impl<D> Unpin for CRCTreeNode<D>where D: Unpin,
impl<D> UnwindSafe for CRCTreeNode<D>where D: UnwindSafe,
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