pub struct SpecInterfaceAnchorView<'a> {
pub interface_name: &'a str,
pub interface_version: &'a str,
pub declared_by: ContractSpecIdView<'a>,
}Expand description
The “include this interface” marker an impl emits so the post-processor
retains a trait’s (otherwise candidate) interface spec. Mirrors
thruput_spec::SpecInterfaceAnchor.
Fields§
§interface_name: &'a str§interface_version: &'a str§declared_by: ContractSpecIdView<'a>Implementations§
Source§impl<'a> SpecInterfaceAnchorView<'a>
impl<'a> SpecInterfaceAnchorView<'a>
pub const fn const_write_cxs<const __N: usize>(&self, w: &mut ConstWriter<__N>)
pub const fn const_write_txs<const __N: usize>(&self, w: &mut ConstWriter<__N>)
Sourcepub const fn const_cxs_size(&self) -> usize
pub const fn const_cxs_size(&self) -> usize
Returns the CXS encoded size of this value in bytes.
Sourcepub const fn const_txs_size(&self) -> usize
pub const fn const_txs_size(&self) -> usize
Returns the TXS encoded size of this value in bytes.
Trait Implementations§
Source§impl<'a> Clone for SpecInterfaceAnchorView<'a>
impl<'a> Clone for SpecInterfaceAnchorView<'a>
impl<'a> Copy for SpecInterfaceAnchorView<'a>
Source§impl<'a> Debug for SpecInterfaceAnchorView<'a>
impl<'a> Debug for SpecInterfaceAnchorView<'a>
impl<'a> EncodesAs<SpecInterfaceAnchorView<'a>> for SpecInterfaceAnchorView<'a>
impl<'a> Eq for SpecInterfaceAnchorView<'a>
Source§impl From<SpecInterfaceAnchorView<'_>> for SpecInterfaceAnchor
Available on crate feature owned-model only.
impl From<SpecInterfaceAnchorView<'_>> for SpecInterfaceAnchor
Available on crate feature
owned-model only.Source§fn from(value: SpecInterfaceAnchorView<'_>) -> Self
fn from(value: SpecInterfaceAnchorView<'_>) -> Self
Converts to this type from the input type.
Source§impl<'a> PartialEq for SpecInterfaceAnchorView<'a>
impl<'a> PartialEq for SpecInterfaceAnchorView<'a>
impl<'a> StructuralPartialEq for SpecInterfaceAnchorView<'a>
Source§impl<'a> WriteXDR for SpecInterfaceAnchorView<'a>
impl<'a> WriteXDR for SpecInterfaceAnchorView<'a>
Source§fn write_xdr<F, W: Writer<F>>(&self, w: &mut W) -> WriteResult<()>
fn write_xdr<F, W: Writer<F>>(&self, w: &mut W) -> WriteResult<()>
Writes this value as XDR data to the writer. Read more
Source§unsafe fn write_xdr_unchecked<F, W: WriterUnchecked<F>>(&self, w: &mut W)
unsafe fn write_xdr_unchecked<F, W: WriterUnchecked<F>>(&self, w: &mut W)
Writes this value as XDR data to the writer, without runtime checks. Read more
Auto Trait Implementations§
impl<'a> Freeze for SpecInterfaceAnchorView<'a>
impl<'a> RefUnwindSafe for SpecInterfaceAnchorView<'a>
impl<'a> Send for SpecInterfaceAnchorView<'a>
impl<'a> Sync for SpecInterfaceAnchorView<'a>
impl<'a> Unpin for SpecInterfaceAnchorView<'a>
impl<'a> UnsafeUnpin for SpecInterfaceAnchorView<'a>
impl<'a> UnwindSafe for SpecInterfaceAnchorView<'a>
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