Struct bee_tangle::metadata::IndexId [−][src]
pub struct IndexId(_, _);
Expand description
A type used to associate two particular interesting Cone Root Indexes with a message in the Tangle, i.e. the Oldest Cone Root Index (OCRI), and the Youngest Cone Root Index (YCRI)
Implementations
Create a new IndexId
.
Get the milestone index of this IndexId
.
Update this IndexId
with a new milestone index.
Trait Implementations
type Error = IndexIdError
type Error = IndexIdError
Associated error type.
Returns the length of the packed bytes.
Packs the instance to bytes and writes them to the passed writer.
Reads bytes from the passed reader and unpacks them into an instance.
Packs the instance to bytes and writes them to a newly allocated vector.
Reads bytes from the passed reader and unpacks them into an instance. Applies syntactic checks. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for IndexId
impl UnwindSafe for IndexId
Blanket Implementations
Mutably borrows from an owned value. Read more