[][src]Enum clarity_repl::clarity::types::serialization::TypePrefix

#[repr(u8)]pub enum TypePrefix {
    Int,
    UInt,
    Buffer,
    BoolTrue,
    BoolFalse,
    PrincipalStandard,
    PrincipalContract,
    ResponseOk,
    ResponseErr,
    OptionalNone,
    OptionalSome,
    List,
    Tuple,
    StringASCII,
    StringUTF8,
}

Variants

Int
UInt
Buffer
BoolTrue
BoolFalse
PrincipalStandard
PrincipalContract
ResponseOk
ResponseErr
OptionalNone
OptionalSome
List
Tuple
StringASCII
StringUTF8

Implementations

impl TypePrefix[src]

pub const ALL: &'static [TypePrefix][src]

pub fn to_u8(&self) -> u8[src]

pub fn from_u8(v: u8) -> Option<Self>[src]

Trait Implementations

impl<'_> From<&'_ PrincipalData> for TypePrefix[src]

impl<'_> From<&'_ Value> for TypePrefix[src]

impl PartialEq<TypePrefix> for TypePrefix[src]

impl StructuralPartialEq for TypePrefix[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.