pub struct TypeDefSequence<T: Form = MetaForm> { /* private fields */ }
Expand description
A type to refer to a sequence of elements of the same type.
Implementations§
Source§impl TypeDefSequence
impl TypeDefSequence
Source§impl<T> TypeDefSequence<T>where
T: Form,
impl<T> TypeDefSequence<T>where
T: Form,
Sourcepub fn type_param(&self) -> &T::Type
pub fn type_param(&self) -> &T::Type
Returns the element type of the sequence type.
Trait Implementations§
Source§impl<T: Clone + Form> Clone for TypeDefSequence<T>
impl<T: Clone + Form> Clone for TypeDefSequence<T>
Source§fn clone(&self) -> TypeDefSequence<T>
fn clone(&self) -> TypeDefSequence<T>
Returns a duplicate 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<T: Form> Decode for TypeDefSequence<T>
impl<T: Form> Decode for TypeDefSequence<T>
Source§impl<T: Form> Encode for TypeDefSequence<T>
impl<T: Form> Encode for TypeDefSequence<T>
Source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy, )
Convert self to a slice and append it to the destination.
Source§fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
Source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
Source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
Source§impl<T: Form> From<TypeDefSequence<T>> for TypeDef<T>
impl<T: Form> From<TypeDefSequence<T>> for TypeDef<T>
Source§fn from(original: TypeDefSequence<T>) -> TypeDef<T>
fn from(original: TypeDefSequence<T>) -> TypeDef<T>
Converts to this type from the input type.
Source§impl From<TypeDefSequence> for Type
impl From<TypeDefSequence> for Type
Source§fn from(sequence: TypeDefSequence) -> Self
fn from(sequence: TypeDefSequence) -> Self
Converts to this type from the input type.
Source§impl IntoPortable for TypeDefSequence
impl IntoPortable for TypeDefSequence
Source§type Output = TypeDefSequence<PortableForm>
type Output = TypeDefSequence<PortableForm>
The portable version of
Self
.Source§fn into_portable(self, registry: &mut Registry) -> Self::Output
fn into_portable(self, registry: &mut Registry) -> Self::Output
Convert
self
to the portable form by using the registry for caching.Source§impl<T: Ord + Form> Ord for TypeDefSequence<T>
impl<T: Ord + Form> Ord for TypeDefSequence<T>
Source§fn cmp(&self, other: &TypeDefSequence<T>) -> Ordering
fn cmp(&self, other: &TypeDefSequence<T>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: PartialOrd + Form> PartialOrd for TypeDefSequence<T>where
T::Type: PartialOrd,
impl<T: PartialOrd + Form> PartialOrd for TypeDefSequence<T>where
T::Type: PartialOrd,
impl<T: Form> EncodeLike for TypeDefSequence<T>
impl<T: Eq + Form> Eq for TypeDefSequence<T>
impl<T: Form> StructuralPartialEq for TypeDefSequence<T>
Auto Trait Implementations§
impl<T> Freeze for TypeDefSequence<T>
impl<T> RefUnwindSafe for TypeDefSequence<T>
impl<T> Send for TypeDefSequence<T>
impl<T> Sync for TypeDefSequence<T>
impl<T> Unpin for TypeDefSequence<T>
impl<T> UnwindSafe for TypeDefSequence<T>
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