pub struct DAGSegment {
pub nodes: Vec<DAGNode>,
pub root_commitment: Hash,
}Expand description
A segment of the state transition DAG
Fields§
§nodes: Vec<DAGNode>Nodes in this segment
root_commitment: HashRoot commitment hash
Implementations§
Trait Implementations§
Source§impl Clone for DAGSegment
impl Clone for DAGSegment
Source§fn clone(&self) -> DAGSegment
fn clone(&self) -> DAGSegment
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 DAGSegment
impl Debug for DAGSegment
Source§impl<'de> Deserialize<'de> for DAGSegment
impl<'de> Deserialize<'de> for DAGSegment
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 PartialEq for DAGSegment
impl PartialEq for DAGSegment
Source§impl Serialize for DAGSegment
impl Serialize for DAGSegment
impl Eq for DAGSegment
impl StructuralPartialEq for DAGSegment
Auto Trait Implementations§
impl Freeze for DAGSegment
impl RefUnwindSafe for DAGSegment
impl Send for DAGSegment
impl Sync for DAGSegment
impl Unpin for DAGSegment
impl UnsafeUnpin for DAGSegment
impl UnwindSafe for DAGSegment
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