Struct rgb::schema::ExtensionSchema
source · pub struct ExtensionSchema {
pub metadata: SemId,
pub globals: GlobalSchema,
pub redeems: ValencySchema,
pub assignments: AssignmentsSchema,
pub valencies: ValencySchema,
}
Fields§
§metadata: SemId
§globals: GlobalSchema
§redeems: ValencySchema
§assignments: AssignmentsSchema
§valencies: ValencySchema
Trait Implementations§
source§impl Clone for ExtensionSchema
impl Clone for ExtensionSchema
source§fn clone(&self) -> ExtensionSchema
fn clone(&self) -> ExtensionSchema
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 moresource§impl Debug for ExtensionSchema
impl Debug for ExtensionSchema
source§impl Default for ExtensionSchema
impl Default for ExtensionSchema
source§fn default() -> ExtensionSchema
fn default() -> ExtensionSchema
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ExtensionSchema
impl<'de> Deserialize<'de> for ExtensionSchema
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 OpSchema for ExtensionSchema
impl OpSchema for ExtensionSchema
fn op_type(&self) -> OpType
fn metadata(&self) -> SemId
fn globals(&self) -> &GlobalSchema
fn inputs(&self) -> Option<&TinyOrdMap<AssignmentType, Occurrences>>
fn redeems(&self) -> Option<&ValencySchema>
fn assignments(&self) -> &AssignmentsSchema
fn valencies(&self) -> &ValencySchema
source§impl PartialEq for ExtensionSchema
impl PartialEq for ExtensionSchema
source§fn eq(&self, other: &ExtensionSchema) -> bool
fn eq(&self, other: &ExtensionSchema) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ExtensionSchema
impl Serialize for ExtensionSchema
source§impl StrictDecode for ExtensionSchema
impl StrictDecode for ExtensionSchema
fn strict_decode(reader: &mut impl TypedRead) -> Result<Self, DecodeError>
fn strict_read(lim: usize, reader: impl Read) -> Result<Self, DecodeError>
source§impl StrictEncode for ExtensionSchema
impl StrictEncode for ExtensionSchema
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
fn strict_write(&self, lim: usize, writer: impl Write) -> Result<usize, Error>
source§impl StrictStruct for ExtensionSchema
impl StrictStruct for ExtensionSchema
const ALL_FIELDS: &'static [&'static str] = _
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
source§impl StrictType for ExtensionSchema
impl StrictType for ExtensionSchema
const STRICT_LIB_NAME: &'static str = LIB_NAME_RGB
fn strict_name() -> Option<TypeName>
impl Eq for ExtensionSchema
impl StrictProduct for ExtensionSchema
impl StructuralEq for ExtensionSchema
impl StructuralPartialEq for ExtensionSchema
Auto Trait Implementations§
impl RefUnwindSafe for ExtensionSchema
impl Send for ExtensionSchema
impl Sync for ExtensionSchema
impl Unpin for ExtensionSchema
impl UnwindSafe for ExtensionSchema
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.