Struct radix_engine_common::data::scrypto::custom_schema::EMPTY_SCHEMA
source · struct EMPTY_SCHEMA {
__private_field: (),
}
Fields§
§__private_field: ()
Methods from Deref<Target = Schema<ScryptoCustomSchema>>§
pub fn resolve_type_kind( &self, type_id: LocalTypeId ) -> Option<&TypeKind<<S as CustomSchema>::CustomTypeKind<LocalTypeId>, LocalTypeId>>
pub fn resolve_type_metadata( &self, type_id: LocalTypeId ) -> Option<&TypeMetadata>
pub fn resolve_matching_tuple_metadata( &self, type_id: LocalTypeId, fields_length: usize ) -> TupleData<'_>
pub fn resolve_matching_enum_metadata<'s>( &self, type_id: LocalTypeId, variant_id: u8, fields_length: usize ) -> EnumVariantData<'_>
pub fn resolve_matching_array_metadata( &self, type_id: LocalTypeId ) -> ArrayData<'_>
pub fn resolve_matching_map_metadata(&self, type_id: LocalTypeId) -> MapData<'_>
pub fn resolve_type_name_from_metadata( &self, type_id: LocalTypeId ) -> Option<&str>
pub fn resolve_type_validation( &self, type_id: LocalTypeId ) -> Option<&TypeValidation<<S as CustomSchema>::CustomTypeValidation>>
pub fn validate(&self) -> Result<(), SchemaValidationError>
Trait Implementations§
source§impl Deref for EMPTY_SCHEMA
impl Deref for EMPTY_SCHEMA
§type Target = SchemaV1<ScryptoCustomSchema>
type Target = SchemaV1<ScryptoCustomSchema>
The resulting type after dereferencing.
source§fn deref(&self) -> &Schema<ScryptoCustomSchema>
fn deref(&self) -> &Schema<ScryptoCustomSchema>
Dereferences the value.
impl LazyStatic for EMPTY_SCHEMA
Auto Trait Implementations§
impl RefUnwindSafe for EMPTY_SCHEMA
impl Send for EMPTY_SCHEMA
impl Sync for EMPTY_SCHEMA
impl Unpin for EMPTY_SCHEMA
impl UnwindSafe for EMPTY_SCHEMA
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self
to type T
. The semantics of numeric casting with the as
operator are followed, so <T as As>::as_::<U>
can be used in the same way as T as U
for numeric conversions. Read moresource§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