#[repr(i32)]pub enum ContractUnionCaseTypeView<'a> {
Void = 0,
Tuple(&'a [ContractTypeView<'a>]),
Struct(&'a [ContractFieldView<'a>]),
}Variants§
Implementations§
Source§impl<'a> ContractUnionCaseTypeView<'a>
impl<'a> ContractUnionCaseTypeView<'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 ContractUnionCaseTypeView<'a>
impl<'a> Clone for ContractUnionCaseTypeView<'a>
impl<'a> Copy for ContractUnionCaseTypeView<'a>
Source§impl<'a> Debug for ContractUnionCaseTypeView<'a>
impl<'a> Debug for ContractUnionCaseTypeView<'a>
impl<'a> EncodesAs<ContractUnionCaseTypeView<'a>> for ContractUnionCaseTypeView<'a>
impl<'a> Eq for ContractUnionCaseTypeView<'a>
Source§impl From<ContractUnionCaseTypeView<'_>> for ContractUnionCaseType
Available on crate feature owned-model only.
impl From<ContractUnionCaseTypeView<'_>> for ContractUnionCaseType
Available on crate feature
owned-model only.Source§fn from(value: ContractUnionCaseTypeView<'_>) -> Self
fn from(value: ContractUnionCaseTypeView<'_>) -> Self
Converts to this type from the input type.
Source§impl<'a> PartialEq for ContractUnionCaseTypeView<'a>
impl<'a> PartialEq for ContractUnionCaseTypeView<'a>
impl<'a> StructuralPartialEq for ContractUnionCaseTypeView<'a>
Source§impl<'a> WriteXDR for ContractUnionCaseTypeView<'a>
impl<'a> WriteXDR for ContractUnionCaseTypeView<'a>
Source§fn write_xdr<F, W: Writer<F>>(
&self,
__write_xdr_writer: &mut W,
) -> WriteResult<()>
fn write_xdr<F, W: Writer<F>>( &self, __write_xdr_writer: &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,
__write_xdr_writer: &mut W,
)
unsafe fn write_xdr_unchecked<F, W: WriterUnchecked<F>>( &self, __write_xdr_writer: &mut W, )
Writes this value as XDR data to the writer, without runtime checks. Read more
Auto Trait Implementations§
impl<'a> Freeze for ContractUnionCaseTypeView<'a>
impl<'a> RefUnwindSafe for ContractUnionCaseTypeView<'a>
impl<'a> Send for ContractUnionCaseTypeView<'a>
impl<'a> Sync for ContractUnionCaseTypeView<'a>
impl<'a> Unpin for ContractUnionCaseTypeView<'a>
impl<'a> UnsafeUnpin for ContractUnionCaseTypeView<'a>
impl<'a> UnwindSafe for ContractUnionCaseTypeView<'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