pub enum Primitive {
Integer(IntegerType, IntegerDisplay),
ByteArray {
len: usize,
display: ByteDisplay,
},
ByteVec {
display: ByteDisplay,
},
Float32,
Float64,
String,
Boolean,
Skip {
len: usize,
},
}Variants§
Integer(IntegerType, IntegerDisplay)
ByteArray
ByteVec
Fields
§
display: ByteDisplayFloat32
Float64
String
Boolean
Skip
Trait Implementations§
Source§impl BorshDeserialize for Primitive
impl BorshDeserialize for Primitive
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for Primitive
impl BorshSerialize for Primitive
impl Eq for Primitive
impl StructuralPartialEq for Primitive
Auto Trait Implementations§
impl Freeze for Primitive
impl RefUnwindSafe for Primitive
impl Send for Primitive
impl Sync for Primitive
impl Unpin for Primitive
impl UnsafeUnpin for Primitive
impl UnwindSafe for Primitive
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