pub struct IfaceImpl {
pub version: VerNo,
pub schema_id: SchemaId,
pub iface_id: IfaceId,
pub global_state: TinyOrdSet<NamedField<GlobalStateType>>,
pub assignments: TinyOrdSet<NamedField<AssignmentType>>,
pub valencies: TinyOrdSet<NamedField<ValencyType>>,
pub transitions: TinyOrdSet<NamedType<TransitionType>>,
pub extensions: TinyOrdSet<NamedField<ExtensionType>>,
pub script: Script,
}
Expand description
Interface implementation for some specific schema.
Fields§
§version: VerNo
§schema_id: SchemaId
§iface_id: IfaceId
§global_state: TinyOrdSet<NamedField<GlobalStateType>>
§assignments: TinyOrdSet<NamedField<AssignmentType>>
§valencies: TinyOrdSet<NamedField<ValencyType>>
§transitions: TinyOrdSet<NamedType<TransitionType>>
§extensions: TinyOrdSet<NamedField<ExtensionType>>
§script: Script
Implementations§
Source§impl IfaceImpl
impl IfaceImpl
pub fn impl_id(&self) -> ImplId
pub fn global_type(&self, name: &FieldName) -> Option<GlobalStateType>
pub fn assignments_type(&self, name: &FieldName) -> Option<AssignmentType>
pub fn transition_type(&self, name: &TypeName) -> Option<TransitionType>
pub fn global_name(&self, id: GlobalStateType) -> Option<&FieldName>
pub fn assignment_name(&self, id: AssignmentType) -> Option<&FieldName>
pub fn transition_name(&self, id: TransitionType) -> Option<&TypeName>
Trait Implementations§
Source§impl BindleContent for IfaceImpl
impl BindleContent for IfaceImpl
Source§const PLATE_TITLE: &'static str = "RGB INTERFACE IMPLEMENTATION"
const PLATE_TITLE: &'static str = "RGB INTERFACE IMPLEMENTATION"
String used in ASCII armored blocks
type Id = ImplId
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 IfaceImpl
impl CommitStrategy for IfaceImpl
Source§impl CommitmentId for IfaceImpl
impl CommitmentId for IfaceImpl
Source§impl<'de> Deserialize<'de> for IfaceImpl
impl<'de> Deserialize<'de> for IfaceImpl
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 StrictDecode for IfaceImpl
impl StrictDecode for IfaceImpl
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 IfaceImpl
impl StrictDeserialize for IfaceImpl
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 IfaceImpl
impl StrictDumb for IfaceImpl
fn strict_dumb() -> Self
Source§impl StrictEncode for IfaceImpl
impl StrictEncode for IfaceImpl
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 IfaceImpl
impl StrictSerialize for IfaceImpl
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 IfaceImpl
impl StrictStruct for IfaceImpl
const ALL_FIELDS: &'static [&'static str]
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
Source§impl StrictType for IfaceImpl
impl StrictType for IfaceImpl
const STRICT_LIB_NAME: &'static str = LIB_NAME_RGB_STD
fn strict_name() -> Option<TypeName>
impl Eq for IfaceImpl
impl StrictProduct for IfaceImpl
impl StructuralPartialEq for IfaceImpl
Auto Trait Implementations§
impl Freeze for IfaceImpl
impl RefUnwindSafe for IfaceImpl
impl Send for IfaceImpl
impl Sync for IfaceImpl
impl Unpin for IfaceImpl
impl UnwindSafe for IfaceImpl
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> 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.