Enum soroban_env_guest::xdr::ScSpecEntry
pub enum ScSpecEntry {
FunctionV0(ScSpecFunctionV0),
UdtStructV0(ScSpecUdtStructV0),
UdtUnionV0(ScSpecUdtUnionV0),
UdtEnumV0(ScSpecUdtEnumV0),
UdtErrorEnumV0(ScSpecUdtErrorEnumV0),
}
Expand description
ScSpecEntry is an XDR Union defines as:
union SCSpecEntry switch (SCSpecEntryKind kind)
{
case SC_SPEC_ENTRY_FUNCTION_V0:
SCSpecFunctionV0 functionV0;
case SC_SPEC_ENTRY_UDT_STRUCT_V0:
SCSpecUDTStructV0 udtStructV0;
case SC_SPEC_ENTRY_UDT_UNION_V0:
SCSpecUDTUnionV0 udtUnionV0;
case SC_SPEC_ENTRY_UDT_ENUM_V0:
SCSpecUDTEnumV0 udtEnumV0;
case SC_SPEC_ENTRY_UDT_ERROR_ENUM_V0:
SCSpecUDTErrorEnumV0 udtErrorEnumV0;
};
Variants§
FunctionV0(ScSpecFunctionV0)
UdtStructV0(ScSpecUdtStructV0)
UdtUnionV0(ScSpecUdtUnionV0)
UdtEnumV0(ScSpecUdtEnumV0)
UdtErrorEnumV0(ScSpecUdtErrorEnumV0)
Implementations§
§impl ScSpecEntry
impl ScSpecEntry
pub const VARIANTS: [ScSpecEntryKind; 5] = _
pub const VARIANTS_STR: [&'static str; 5] = _
pub const fn name(&self) -> &'static str
pub const fn discriminant(&self) -> ScSpecEntryKind
pub const fn variants() -> [ScSpecEntryKind; 5]
Trait Implementations§
§impl<'arbitrary> Arbitrary<'arbitrary> for ScSpecEntry
impl<'arbitrary> Arbitrary<'arbitrary> for ScSpecEntry
§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<ScSpecEntry, Error>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<ScSpecEntry, Error>
Generate an arbitrary value of
Self
from the given unstructured data. Read more§fn arbitrary_take_rest(
u: Unstructured<'arbitrary>
) -> Result<ScSpecEntry, Error>
fn arbitrary_take_rest( u: Unstructured<'arbitrary> ) -> Result<ScSpecEntry, Error>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read more§impl Clone for ScSpecEntry
impl Clone for ScSpecEntry
§fn clone(&self) -> ScSpecEntry
fn clone(&self) -> ScSpecEntry
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for ScSpecEntry
impl Debug for ScSpecEntry
§impl Discriminant<ScSpecEntryKind> for ScSpecEntry
impl Discriminant<ScSpecEntryKind> for ScSpecEntry
fn discriminant(&self) -> ScSpecEntryKind
§impl Hash for ScSpecEntry
impl Hash for ScSpecEntry
§impl Ord for ScSpecEntry
impl Ord for ScSpecEntry
§impl PartialEq for ScSpecEntry
impl PartialEq for ScSpecEntry
§fn eq(&self, other: &ScSpecEntry) -> bool
fn eq(&self, other: &ScSpecEntry) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd for ScSpecEntry
impl PartialOrd for ScSpecEntry
§fn partial_cmp(&self, other: &ScSpecEntry) -> Option<Ordering>
fn partial_cmp(&self, other: &ScSpecEntry) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more§impl ReadXdr for ScSpecEntry
impl ReadXdr for ScSpecEntry
§fn read_xdr<R>(r: &mut Limited<R>) -> Result<ScSpecEntry, Error>where
R: Read,
fn read_xdr<R>(r: &mut Limited<R>) -> Result<ScSpecEntry, Error>where
R: Read,
Read the XDR and construct the type. Read more
§fn read_xdr_to_end<R>(r: &mut Limited<R>) -> Result<Self, Error>where
R: Read,
fn read_xdr_to_end<R>(r: &mut Limited<R>) -> Result<Self, Error>where
R: Read,
Read the XDR and construct the type, and consider it an error if the
read does not completely consume the read implementation. Read more
§fn read_xdr_into<R>(&mut self, r: &mut Limited<R>) -> Result<(), Error>where
R: Read,
fn read_xdr_into<R>(&mut self, r: &mut Limited<R>) -> Result<(), Error>where
R: Read,
Read the XDR and construct the type. Read more
§fn read_xdr_into_to_end<R>(&mut self, r: &mut Limited<R>) -> Result<(), Error>where
R: Read,
fn read_xdr_into_to_end<R>(&mut self, r: &mut Limited<R>) -> Result<(), Error>where
R: Read,
Read the XDR into the existing value, and consider it an error if the
read does not completely consume the read implementation. Read more
§fn read_xdr_iter<R>(r: &mut Limited<R>) -> ReadXdrIter<&mut R, Self> ⓘwhere
R: Read,
fn read_xdr_iter<R>(r: &mut Limited<R>) -> ReadXdrIter<&mut R, Self> ⓘwhere
R: Read,
Create an iterator that reads the read implementation as a stream of
values that are read into the implementing type. Read more
§impl Variants<ScSpecEntryKind> for ScSpecEntry
impl Variants<ScSpecEntryKind> for ScSpecEntry
fn variants() -> Iter<'static, ScSpecEntryKind>
§impl WriteXdr for ScSpecEntry
impl WriteXdr for ScSpecEntry
impl Eq for ScSpecEntry
impl StructuralPartialEq for ScSpecEntry
impl Union<ScSpecEntryKind> for ScSpecEntry
Auto Trait Implementations§
impl RefUnwindSafe for ScSpecEntry
impl Send for ScSpecEntry
impl Sync for ScSpecEntry
impl Unpin for ScSpecEntry
impl UnwindSafe for ScSpecEntry
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