pub struct CellAddr {
pub opid: Opid,
pub pos: u16,
}
Expand description
Address of the memory cell.
Memory cell address is the output of some operation defining that cell in its output.
Fields§
§opid: Opid
Operation identifier where the memory cell is defined.
pos: u16
Index of the operation output defining the cell.
Whether this output is a Operation::destructible_out
or Operation::immutable_out
is
always resolvable from the context in which the memory cell address is used.
Implementations§
Trait Implementations§
Source§impl CommitEncode for CellAddr
impl CommitEncode for CellAddr
Source§type CommitmentId = MerkleHash
type CommitmentId = MerkleHash
Type of the resulting commitment.
Source§fn commit_encode(&self, engine: &mut CommitEngine)
fn commit_encode(&self, engine: &mut CommitEngine)
Encodes the data for the commitment by writing them directly into a
std::io::Write
writer instanceSource§impl<'de> Deserialize<'de> for CellAddr
impl<'de> Deserialize<'de> for CellAddr
Source§fn deserialize<D>(
deserializer: D,
) -> Result<CellAddr, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<CellAddr, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for CellAddr
impl Ord for CellAddr
Source§impl PartialOrd for CellAddr
impl PartialOrd for CellAddr
Source§impl Serialize for CellAddr
impl Serialize for CellAddr
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl StrictDecode for CellAddr
impl StrictDecode for CellAddr
fn strict_decode(reader: &mut impl TypedRead) -> Result<CellAddr, DecodeError>
fn strict_read(reader: impl ReadRaw) -> Result<Self, DecodeError>
Source§impl StrictDumb for CellAddr
impl StrictDumb for CellAddr
fn strict_dumb() -> CellAddr
Source§impl StrictEncode for CellAddr
impl StrictEncode for CellAddr
fn strict_encode<W>(&self, writer: W) -> Result<W, Error>where
W: TypedWrite,
fn strict_write(&self, writer: impl WriteRaw) -> Result<(), Error>
Source§impl StrictStruct for CellAddr
impl StrictStruct for CellAddr
const ALL_FIELDS: &'static [&'static str]
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
Source§impl StrictType for CellAddr
impl StrictType for CellAddr
const STRICT_LIB_NAME: &'static str = LIB_NAME_ULTRASONIC
fn strict_name() -> Option<TypeName>
impl Copy for CellAddr
impl Eq for CellAddr
impl StrictProduct for CellAddr
impl StructuralPartialEq for CellAddr
Auto Trait Implementations§
impl Freeze for CellAddr
impl RefUnwindSafe for CellAddr
impl Send for CellAddr
impl Sync for CellAddr
impl Unpin for CellAddr
impl UnwindSafe for CellAddr
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§impl<T> CommitId for Twhere
T: CommitEncode,
impl<T> CommitId for Twhere
T: CommitEncode,
fn commit(&self) -> CommitEngine
Source§fn commit_id(&self) -> <T as CommitEncode>::CommitmentId
fn commit_id(&self) -> <T as CommitEncode>::CommitmentId
Performs commitment to client-side-validated data
Source§impl<T> CommitmentLayout for Twhere
T: CommitEncode + StrictDumb,
impl<T> CommitmentLayout for Twhere
T: CommitEncode + StrictDumb,
Source§fn commitment_layout() -> CommitLayout
fn commitment_layout() -> CommitLayout
Generate a descriptive commitment layout, which includes a description
of each encoded field and the used hashing strategies.
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.