Struct polymesh_api_client::type_def::TypeParameter
source · [−]Expand description
A generic type parameter.
Implementations
Trait Implementations
sourceimpl<T> Clone for TypeParameter<T> where
T: Clone + Form,
<T as Form>::String: Clone,
<T as Form>::Type: Clone,
impl<T> Clone for TypeParameter<T> where
T: Clone + Form,
<T as Form>::String: Clone,
<T as Form>::Type: Clone,
sourcefn clone(&self) -> TypeParameter<T>
fn clone(&self) -> TypeParameter<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<T> Debug for TypeParameter<T> where
T: Debug + Form,
<T as Form>::String: Debug,
<T as Form>::Type: Debug,
impl<T> Debug for TypeParameter<T> where
T: Debug + Form,
<T as Form>::String: Debug,
<T as Form>::Type: Debug,
sourceimpl<T> Decode for TypeParameter<T> where
T: Form,
<T as Form>::String: Decode,
Option<<T as Form>::Type>: Decode,
impl<T> Decode for TypeParameter<T> where
T: Form,
<T as Form>::String: Decode,
Option<<T as Form>::Type>: Decode,
sourcefn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<TypeParameter<T>, Error> where
__CodecInputEdqy: Input,
fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<TypeParameter<T>, Error> where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.
sourcefn skip<I>(input: &mut I) -> Result<(), Error> where
I: Input,
fn skip<I>(input: &mut I) -> Result<(), Error> where
I: Input,
Attempt to skip the encoded value from input. Read more
sourcefn encoded_fixed_size() -> Option<usize>
fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more
sourceimpl<'de, T> Deserialize<'de> for TypeParameter<T> where
T: Form,
<T as Form>::Type: DeserializeOwned,
<T as Form>::String: DeserializeOwned,
impl<'de, T> Deserialize<'de> for TypeParameter<T> where
T: Form,
<T as Form>::Type: DeserializeOwned,
<T as Form>::String: DeserializeOwned,
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<TypeParameter<T>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<TypeParameter<T>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<T> Encode for TypeParameter<T> where
T: Form,
<T as Form>::String: Encode,
Option<<T as Form>::Type>: Encode,
impl<T> Encode for TypeParameter<T> where
T: Form,
<T as Form>::String: Encode,
Option<<T as Form>::Type>: Encode,
sourcefn encode_to<__CodecOutputEdqy>(&self, __codec_dest_edqy: &mut __CodecOutputEdqy) where
__CodecOutputEdqy: Output + ?Sized,
fn encode_to<__CodecOutputEdqy>(&self, __codec_dest_edqy: &mut __CodecOutputEdqy) where
__CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.
sourcefn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
sourcefn encode(&self) -> Vec<u8, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
fn encode(&self) -> Vec<u8, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Convert self to an owned vector.
sourcefn using_encoded<R, F>(&self, f: F) -> R where
F: FnOnce(&[u8]) -> R,
fn using_encoded<R, F>(&self, f: F) -> R where
F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.
sourcefn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
sourceimpl<T> From<(<T as Form>::String, Option<<T as Form>::Type>)> for TypeParameter<T> where
T: Form,
impl<T> From<(<T as Form>::String, Option<<T as Form>::Type>)> for TypeParameter<T> where
T: Form,
sourceimpl IntoPortable for TypeParameter<MetaForm>
impl IntoPortable for TypeParameter<MetaForm>
type Output = TypeParameter<PortableForm>
type Output = TypeParameter<PortableForm>
The portable version of Self
.
sourcefn into_portable(
self,
registry: &mut Registry
) -> <TypeParameter<MetaForm> as IntoPortable>::Output
fn into_portable(
self,
registry: &mut Registry
) -> <TypeParameter<MetaForm> as IntoPortable>::Output
Convert self
to the portable form by using the registry for caching.
sourceimpl<T> Ord for TypeParameter<T> where
T: Ord + Form,
<T as Form>::String: Ord,
<T as Form>::Type: Ord,
impl<T> Ord for TypeParameter<T> where
T: Ord + Form,
<T as Form>::String: Ord,
<T as Form>::Type: Ord,
sourcefn cmp(&self, other: &TypeParameter<T>) -> Ordering
fn cmp(&self, other: &TypeParameter<T>) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<T> PartialEq<TypeParameter<T>> for TypeParameter<T> where
T: PartialEq<T> + Form,
<T as Form>::String: PartialEq<<T as Form>::String>,
<T as Form>::Type: PartialEq<<T as Form>::Type>,
impl<T> PartialEq<TypeParameter<T>> for TypeParameter<T> where
T: PartialEq<T> + Form,
<T as Form>::String: PartialEq<<T as Form>::String>,
<T as Form>::Type: PartialEq<<T as Form>::Type>,
sourcefn eq(&self, other: &TypeParameter<T>) -> bool
fn eq(&self, other: &TypeParameter<T>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &TypeParameter<T>) -> bool
fn ne(&self, other: &TypeParameter<T>) -> bool
This method tests for !=
.
sourceimpl<T> PartialOrd<TypeParameter<T>> for TypeParameter<T> where
T: PartialOrd<T> + Form,
<T as Form>::String: PartialOrd<<T as Form>::String>,
<T as Form>::Type: PartialOrd<<T as Form>::Type>,
impl<T> PartialOrd<TypeParameter<T>> for TypeParameter<T> where
T: PartialOrd<T> + Form,
<T as Form>::String: PartialOrd<<T as Form>::String>,
<T as Form>::Type: PartialOrd<<T as Form>::Type>,
sourcefn partial_cmp(&self, other: &TypeParameter<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &TypeParameter<T>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl<T> Serialize for TypeParameter<T> where
T: Form,
<T as Form>::Type: Serialize,
<T as Form>::String: Serialize,
impl<T> Serialize for TypeParameter<T> where
T: Form,
<T as Form>::Type: Serialize,
<T as Form>::String: Serialize,
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<T> EncodeLike<TypeParameter<T>> for TypeParameter<T> where
T: Form,
<T as Form>::String: Encode,
Option<<T as Form>::Type>: Encode,
impl<T> Eq for TypeParameter<T> where
T: Eq + Form,
<T as Form>::String: Eq,
<T as Form>::Type: Eq,
impl<T> StructuralEq for TypeParameter<T> where
T: Form,
impl<T> StructuralPartialEq for TypeParameter<T> where
T: Form,
Auto Trait Implementations
impl<T> RefUnwindSafe for TypeParameter<T> where
<T as Form>::String: RefUnwindSafe,
<T as Form>::Type: RefUnwindSafe,
impl<T> Send for TypeParameter<T> where
<T as Form>::String: Send,
<T as Form>::Type: Send,
impl<T> Sync for TypeParameter<T> where
<T as Form>::String: Sync,
<T as Form>::Type: Sync,
impl<T> Unpin for TypeParameter<T> where
<T as Form>::String: Unpin,
<T as Form>::Type: Unpin,
impl<T> UnwindSafe for TypeParameter<T> where
<T as Form>::String: UnwindSafe,
<T as Form>::Type: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CheckedConversion for T
impl<T> CheckedConversion for T
sourcefn checked_from<T>(t: T) -> Option<Self> where
Self: TryFrom<T>,
fn checked_from<T>(t: T) -> Option<Self> where
Self: TryFrom<T>,
Convert from a value of T
into an equivalent instance of Option<Self>
. Read more
sourcefn checked_into<T>(self) -> Option<T> where
Self: TryInto<T>,
fn checked_into<T>(self) -> Option<T> where
Self: TryInto<T>,
Consume self to return Some
equivalent value of Option<T>
. Read more
sourceimpl<T> DecodeLimit for T where
T: Decode,
impl<T> DecodeLimit for T where
T: Decode,
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>ⓘNotable traits for Box<R, Global>impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>ⓘNotable traits for Box<R, Global>impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T, Outer> IsWrappedBy<Outer> for T where
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
impl<T, Outer> IsWrappedBy<Outer> for T where
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
sourceimpl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
sourcefn saturated_from<T>(t: T) -> Self where
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Self where
Self: UniqueSaturatedFrom<T>,
Convert from a value of T
into an equivalent instance of Self
. Read more
sourcefn saturated_into<T>(self) -> T where
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> T where
Self: UniqueSaturatedInto<T>,
Consume self to return an equivalent value of T
. Read more
sourceimpl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
sourcefn unchecked_into(self) -> T
fn unchecked_into(self) -> T
The counterpart to unchecked_from
.
sourceimpl<T, S> UniqueSaturatedInto<T> for S where
T: Bounded,
S: TryInto<T>,
impl<T, S> UniqueSaturatedInto<T> for S where
T: Bounded,
S: TryInto<T>,
sourcefn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
Consume self to return an equivalent value of T
.
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more