Enum Primitive
Source pub enum Primitive {
Show 15 variants
Bool,
U8,
U16,
U32,
U64,
U128,
I8,
I16,
I32,
I64,
I128,
F32,
F64,
String,
Opaque {
size: usize,
align: usize,
},
}
Expand description
A Rust String. Must be manipulated with Rust string methods.
Opaque data that cannot described by a schema.
Fields
The alignment of the data.
Performs copy-assignment from
source.
Read more
Formats the value using the given formatter.
Read more
Tests for self and other values to be equal, and is used by ==.
Tests for !=. The default implementation is almost always sufficient,
and should not be overridden without very good reason.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from
self to
dest.
Read more
Checks if this value is equivalent to the given key.
Read more
Checks if this value is equivalent to the given key.
Read more
Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
From<T> for U chooses to do.
Write the default value of the type to the pointer.
Read more
Get a callback suitable for [SchemaData].
Write the default value of the type to the pointer.
Read more
Get a callback suitable for [SchemaData].
Get a callback suitable for [SchemaData].
Get a callback suitable for [SchemaData].
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more
Uses borrowed data to replace owned data, usually by cloning.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.