pub struct Iface {
pub version: VerNo,
pub name: TypeName,
pub global_state: TinyOrdMap<FieldName, GlobalIface>,
pub assignments: TinyOrdMap<FieldName, AssignIface>,
pub valencies: TinyOrdMap<FieldName, ValencyIface>,
pub genesis: GenesisIface,
pub transitions: TinyOrdMap<TypeName, TransitionIface>,
pub extensions: TinyOrdMap<TypeName, ExtensionIface>,
pub error_type: SemId,
pub default_operation: Option<TypeName>,
pub type_system: TypeSystem,
}
Expand description
Interface definition.
Fields§
§version: VerNo
§name: TypeName
§global_state: TinyOrdMap<FieldName, GlobalIface>
§assignments: TinyOrdMap<FieldName, AssignIface>
§valencies: TinyOrdMap<FieldName, ValencyIface>
§genesis: GenesisIface
§transitions: TinyOrdMap<TypeName, TransitionIface>
§extensions: TinyOrdMap<TypeName, ExtensionIface>
§error_type: SemId
§default_operation: Option<TypeName>
§type_system: TypeSystem
Implementations§
Trait Implementations§
Source§impl BindleContent for Iface
impl BindleContent for Iface
Source§const PLATE_TITLE: &'static str = "RGB INTERFACE"
const PLATE_TITLE: &'static str = "RGB INTERFACE"
String used in ASCII armored blocks
type Id = IfaceId
fn bindle_id(&self) -> Self::Id
fn bindle_mnemonic(&self) -> Option<String>
fn bindle_headers(&self) -> BTreeMap<&'static str, String>
fn bindle(self) -> Bindle<Self>
Source§impl CommitStrategy for Iface
impl CommitStrategy for Iface
Source§impl CommitmentId for Iface
impl CommitmentId for Iface
Source§impl<'de> Deserialize<'de> for Iface
impl<'de> Deserialize<'de> for Iface
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for Iface
impl Ord for Iface
Source§impl PartialOrd for Iface
impl PartialOrd for Iface
Source§impl StrictDecode for Iface
impl StrictDecode for Iface
fn strict_decode(reader: &mut impl TypedRead) -> Result<Self, DecodeError>
fn strict_read(lim: usize, reader: impl Read) -> Result<Self, DecodeError>
Source§impl StrictDeserialize for Iface
impl StrictDeserialize for Iface
fn from_strict_serialized<const MAX: usize>( ast_data: Confined<Vec<u8>, 0, MAX>, ) -> Result<Self, DeserializeError>
fn strict_deserialize_from_file<const MAX: usize>( path: impl AsRef<Path>, ) -> Result<Self, DeserializeError>
Source§impl StrictDumb for Iface
impl StrictDumb for Iface
fn strict_dumb() -> Self
Source§impl StrictEncode for Iface
impl StrictEncode for Iface
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
fn strict_write(&self, lim: usize, writer: impl Write) -> Result<usize, Error>
Source§impl StrictSerialize for Iface
impl StrictSerialize for Iface
fn strict_serialized_len(&self) -> Result<usize, Error>
fn to_strict_serialized<const MAX: usize>( &self, ) -> Result<Confined<Vec<u8>, 0, MAX>, SerializeError>
fn strict_serialize_to_file<const MAX: usize>( &self, path: impl AsRef<Path>, ) -> Result<(), SerializeError>
Source§impl StrictStruct for Iface
impl StrictStruct for Iface
const ALL_FIELDS: &'static [&'static str]
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
Source§impl StrictType for Iface
impl StrictType for Iface
const STRICT_LIB_NAME: &'static str = LIB_NAME_RGB_STD
fn strict_name() -> Option<TypeName>
impl Eq for Iface
impl StrictProduct for Iface
Auto Trait Implementations§
impl Freeze for Iface
impl RefUnwindSafe for Iface
impl Send for Iface
impl Sync for Iface
impl Unpin for Iface
impl UnwindSafe for Iface
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> CommitEncode for T
impl<T> CommitEncode for T
Source§fn commit_encode(&self, e: &mut impl Write)
fn commit_encode(&self, e: &mut impl Write)
Encodes the data for the commitment by writing them directly into a
io::Write
writer instanceSource§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.