pub enum AbiHeader {
Time(u64),
Expire(u32),
PublicKey(Option<Box<VerifyingKey>>),
}Expand description
Contract header value.
Variants§
Time(u64)
time header.
Expire(u32)
expire header.
PublicKey(Option<Box<VerifyingKey>>)
pubkey header.
Implementations§
Source§impl AbiHeader
impl AbiHeader
Sourcepub fn skip_all(
headers: &[AbiHeaderType],
slice: &mut CellSlice<'_>,
) -> Result<()>
pub fn skip_all( headers: &[AbiHeaderType], slice: &mut CellSlice<'_>, ) -> Result<()>
Skips all specified headers in slice.
Sourcepub fn skip(ty: AbiHeaderType, slice: &mut CellSlice<'_>) -> Result<()>
pub fn skip(ty: AbiHeaderType, slice: &mut CellSlice<'_>) -> Result<()>
Loads and ignores a corresponding value from the slice.
Sourcepub fn load(ty: AbiHeaderType, slice: &mut CellSlice<'_>) -> Result<Self>
pub fn load(ty: AbiHeaderType, slice: &mut CellSlice<'_>) -> Result<Self>
Loads a corresponding value from the slice.
Source§impl AbiHeader
impl AbiHeader
Sourcepub fn has_type(&self, ty: &AbiHeaderType) -> bool
pub fn has_type(&self, ty: &AbiHeaderType) -> bool
Returns whether this value has the same type as the provided one.
Sourcepub fn display_type(&self) -> impl Display + '_
pub fn display_type(&self) -> impl Display + '_
Returns a printable object which will display a header type signature.
Trait Implementations§
impl Eq for AbiHeader
impl StructuralPartialEq for AbiHeader
Auto Trait Implementations§
impl Freeze for AbiHeader
impl RefUnwindSafe for AbiHeader
impl Send for AbiHeader
impl Sync for AbiHeader
impl Unpin for AbiHeader
impl UnwindSafe for AbiHeader
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<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
Compares
self to key and returns true if they are equal.