[][src]Struct scale_info::RegistryReadOnly

pub struct RegistryReadOnly { /* fields omitted */ }

A read-only registry, to be used for decoding/deserializing

Implementations

impl RegistryReadOnly[src]

pub fn resolve(&self, id: NonZeroU32) -> Option<&Type<CompactForm>>[src]

Returns the type definition for the given identifier, None if no type found for that ID.

Trait Implementations

impl Debug for RegistryReadOnly[src]

impl Decode for RegistryReadOnly[src]

impl<'de> Deserialize<'de> for RegistryReadOnly[src]

impl Eq for RegistryReadOnly[src]

impl From<Registry> for RegistryReadOnly[src]

impl PartialEq<RegistryReadOnly> for RegistryReadOnly[src]

impl Serialize for RegistryReadOnly[src]

impl StructuralEq for RegistryReadOnly[src]

impl StructuralPartialEq for RegistryReadOnly[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, X> Decode for X where
    T: Decode + Into<X>,
    X: WrapperTypeDecode<Wrapped = T>, 
[src]

impl<T> DecodeAll for T where
    T: Decode
[src]

impl<T> DecodeLimit for T where
    T: Decode
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.