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