Struct assembly_pack::common::CRCTreeNode
source · pub struct CRCTreeNode<D> {
pub crc: CRC,
pub left: i32,
pub right: i32,
pub data: D,
}
Expand description
Node in a CRC tree
Fields§
§crc: CRC
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 for CRCTreeNode<D>
impl<D: PartialEq> PartialEq for CRCTreeNode<D>
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> StructuralPartialEq for CRCTreeNode<D>
Auto Trait Implementations§
impl<D> Freeze for CRCTreeNode<D>where
D: Freeze,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
§fn extract_context(self, _original_input: I)
fn extract_context(self, _original_input: I)
Given the context attached to a nom error, and given the original
input to the nom parser, extract more the useful context information. Read more
§impl<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
§fn recreate_context(_original_input: I, tail: I) -> I
fn recreate_context(_original_input: I, tail: I) -> I
Given the original input, as well as the context reported by nom,
recreate a context in the original string where the error occurred. Read more