pub enum TypeDefPrimitive {
Show 15 variants
Bool,
Char,
Str,
U8,
U16,
U32,
U64,
U128,
U256,
I8,
I16,
I32,
I64,
I128,
I256,
}
Expand description
Variants§
Bool
bool
type
Char
char
type
Str
str
type
U8
u8
U16
u16
U32
u32
U64
u64
U128
u128
U256
256 bits unsigned int (no rust equivalent)
I8
i8
I16
i16
I32
i32
I64
i64
I128
i128
I256
256 bits signed int (no rust equivalent)
Trait Implementations§
source§impl Clone for TypeDefPrimitive
impl Clone for TypeDefPrimitive
source§fn clone(&self) -> TypeDefPrimitive
fn clone(&self) -> TypeDefPrimitive
Returns a copy 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 Debug for TypeDefPrimitive
impl Debug for TypeDefPrimitive
source§impl Decode for TypeDefPrimitive
impl Decode for TypeDefPrimitive
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy, ) -> Result<Self, Error>
Attempt to deserialise the value from input.
source§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
source§impl Encode for TypeDefPrimitive
impl Encode for TypeDefPrimitive
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 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>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
source§impl<F: Form> From<TypeDefPrimitive> for Type<F>
impl<F: Form> From<TypeDefPrimitive> for Type<F>
source§fn from(item: TypeDefPrimitive) -> Self
fn from(item: TypeDefPrimitive) -> Self
Converts to this type from the input type.
source§impl<F: Form> From<TypeDefPrimitive> for TypeDef<F>
impl<F: Form> From<TypeDefPrimitive> for TypeDef<F>
source§fn from(x: TypeDefPrimitive) -> Self
fn from(x: TypeDefPrimitive) -> Self
Converts to this type from the input type.
source§impl Ord for TypeDefPrimitive
impl Ord for TypeDefPrimitive
source§fn cmp(&self, other: &TypeDefPrimitive) -> Ordering
fn cmp(&self, other: &TypeDefPrimitive) -> 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 PartialEq for TypeDefPrimitive
impl PartialEq for TypeDefPrimitive
source§impl PartialOrd for TypeDefPrimitive
impl PartialOrd for TypeDefPrimitive
impl EncodeLike for TypeDefPrimitive
impl Eq for TypeDefPrimitive
impl StructuralPartialEq for TypeDefPrimitive
Auto Trait Implementations§
impl Freeze for TypeDefPrimitive
impl RefUnwindSafe for TypeDefPrimitive
impl Send for TypeDefPrimitive
impl Sync for TypeDefPrimitive
impl Unpin for TypeDefPrimitive
impl UnwindSafe for TypeDefPrimitive
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)