[−][src]Struct scale_info::TypeDefSequence
A type to refer to a sequence of elements of the same type.
Implementations
impl TypeDefSequence[src]
pub fn new(type_param: MetaType) -> Self[src]
Creates a new sequence type.
Use this constructor if you want to instantiate from a given meta type.
pub fn of<T>() -> Self where
T: TypeInfo + 'static, [src]
T: TypeInfo + 'static,
Creates a new sequence type.
Use this constructor if you want to instantiate from a given compile-time type.
Trait Implementations
impl<F: Clone + Form> Clone for TypeDefSequence<F> where
F::TypeId: Clone, [src]
F::TypeId: Clone,
fn clone(&self) -> TypeDefSequence<F>[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<F: Debug + Form> Debug for TypeDefSequence<F> where
F::TypeId: Debug, [src]
F::TypeId: Debug,
impl<F: Eq + Form> Eq for TypeDefSequence<F> where
F::TypeId: Eq, [src]
F::TypeId: Eq,
impl<F: Form> From<TypeDefSequence<F>> for TypeDef<F>[src]
fn from(original: TypeDefSequence<F>) -> TypeDef<F>[src]
impl From<TypeDefSequence<MetaForm>> for Type[src]
fn from(sequence: TypeDefSequence) -> Self[src]
impl IntoCompact for TypeDefSequence[src]
type Output = TypeDefSequence<CompactForm>
The compact version of Self.
fn into_compact(self, registry: &mut Registry) -> Self::Output[src]
impl<F: Ord + Form> Ord for TypeDefSequence<F> where
F::TypeId: Ord, [src]
F::TypeId: Ord,
fn cmp(&self, other: &TypeDefSequence<F>) -> Ordering[src]
#[must_use]fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self[src]
impl<F: PartialEq + Form> PartialEq<TypeDefSequence<F>> for TypeDefSequence<F> where
F::TypeId: PartialEq, [src]
F::TypeId: PartialEq,
fn eq(&self, other: &TypeDefSequence<F>) -> bool[src]
fn ne(&self, other: &TypeDefSequence<F>) -> bool[src]
impl<F: PartialOrd + Form> PartialOrd<TypeDefSequence<F>> for TypeDefSequence<F> where
F::TypeId: PartialOrd, [src]
F::TypeId: PartialOrd,
fn partial_cmp(&self, other: &TypeDefSequence<F>) -> Option<Ordering>[src]
fn lt(&self, other: &TypeDefSequence<F>) -> bool[src]
fn le(&self, other: &TypeDefSequence<F>) -> bool[src]
fn gt(&self, other: &TypeDefSequence<F>) -> bool[src]
fn ge(&self, other: &TypeDefSequence<F>) -> bool[src]
impl<F: Form> Serialize for TypeDefSequence<F> where
F::TypeId: Serialize, [src]
F::TypeId: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
impl<F: Form> StructuralEq for TypeDefSequence<F>[src]
impl<F: Form> StructuralPartialEq for TypeDefSequence<F>[src]
Auto Trait Implementations
impl<F> RefUnwindSafe for TypeDefSequence<F> where
<F as Form>::TypeId: RefUnwindSafe,
<F as Form>::TypeId: RefUnwindSafe,
impl<F> Send for TypeDefSequence<F> where
<F as Form>::TypeId: Send,
<F as Form>::TypeId: Send,
impl<F> Sync for TypeDefSequence<F> where
<F as Form>::TypeId: Sync,
<F as Form>::TypeId: Sync,
impl<F> Unpin for TypeDefSequence<F> where
<F as Form>::TypeId: Unpin,
<F as Form>::TypeId: Unpin,
impl<F> UnwindSafe for TypeDefSequence<F> where
<F as Form>::TypeId: UnwindSafe,
<F as Form>::TypeId: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,