Enum muzzman_lib::types::Type

source ·
pub enum Type {
Show 25 variants U8(u8), U16(u16), U32(u32), U64(u64), U128(u128), USize(usize), I8(i8), I16(i16), I32(i32), I64(i64), I128(i128), ISize(isize), F32(f32), F64(f64), Bool(bool), String(String), Path(PathBuf), HashMapSS(HashMap<String, String>), HashMapS(HashMap<String, Type>), FileOrData(FileOrData), CustomEnum(CustomEnum), AdvancedEnum(AdvanceEnum), Vec(Vec<Type>), Bytes(Vec<u8>), None,
}

Variants§

§

U8(u8)

§

U16(u16)

§

U32(u32)

§

U64(u64)

§

U128(u128)

§

USize(usize)

§

I8(i8)

§

I16(i16)

§

I32(i32)

§

I64(i64)

§

I128(i128)

§

ISize(isize)

§

F32(f32)

§

F64(f64)

§

Bool(bool)

§

String(String)

§

Path(PathBuf)

§

HashMapSS(HashMap<String, String>)

§

HashMapS(HashMap<String, Type>)

§

FileOrData(FileOrData)

§

CustomEnum(CustomEnum)

§

AdvancedEnum(AdvanceEnum)

§

Vec(Vec<Type>)

§

Bytes(Vec<u8>)

§

None

Implementations§

source§

impl Type

source

pub fn to_tag(&self) -> TypeTag

Trait Implementations§

source§

impl Clone for Type

source§

fn clone(&self) -> Type

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Type

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Type

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for Type

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<&str> for Type

source§

fn from(value: &str) -> Self

Converts to this type from the input type.
source§

impl From<String> for Type

source§

fn from(value: String) -> Self

Converts to this type from the input type.
source§

impl From<Type> for Value

source§

fn from(value: Type) -> Self

Converts to this type from the input type.
source§

impl From<bool> for Type

source§

fn from(value: bool) -> Self

Converts to this type from the input type.
source§

impl From<f32> for Type

source§

fn from(value: f32) -> Self

Converts to this type from the input type.
source§

impl From<f64> for Type

source§

fn from(value: f64) -> Self

Converts to this type from the input type.
source§

impl From<i128> for Type

source§

fn from(value: i128) -> Self

Converts to this type from the input type.
source§

impl From<i16> for Type

source§

fn from(value: i16) -> Self

Converts to this type from the input type.
source§

impl From<i32> for Type

source§

fn from(value: i32) -> Self

Converts to this type from the input type.
source§

impl From<i64> for Type

source§

fn from(value: i64) -> Self

Converts to this type from the input type.
source§

impl From<i8> for Type

source§

fn from(value: i8) -> Self

Converts to this type from the input type.
source§

impl From<isize> for Type

source§

fn from(value: isize) -> Self

Converts to this type from the input type.
source§

impl From<u128> for Type

source§

fn from(value: u128) -> Self

Converts to this type from the input type.
source§

impl From<u16> for Type

source§

fn from(value: u16) -> Self

Converts to this type from the input type.
source§

impl From<u32> for Type

source§

fn from(value: u32) -> Self

Converts to this type from the input type.
source§

impl From<u64> for Type

source§

fn from(value: u64) -> Self

Converts to this type from the input type.
source§

impl From<u8> for Type

source§

fn from(value: u8) -> Self

Converts to this type from the input type.
source§

impl From<usize> for Type

source§

fn from(value: usize) -> Self

Converts to this type from the input type.
source§

impl Hash for Type

source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where
    H: Hasher,
    Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Serialize for Type

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
    __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl TBytes for Type

source§

fn size(&self) -> usize

source§

fn to_bytes(&self) -> Vec<u8>

source§

fn from_bytes(bytes: &mut Vec<u8>) -> Option<Self>

source§

fn from_bytes_ref(buffer: &[u8]) -> Option<Self>where
    Self: Sized,

source§

impl TryInto<String> for Type

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<String, Self::Error>

Performs the conversion.
source§

impl TryInto<bool> for Type

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<bool, Self::Error>

Performs the conversion.
source§

impl TryInto<f32> for Type

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<f32, Self::Error>

Performs the conversion.
source§

impl TryInto<f64> for Type

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<f64, Self::Error>

Performs the conversion.
source§

impl TryInto<i128> for Type

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<i128, Self::Error>

Performs the conversion.
source§

impl TryInto<i16> for Type

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<i16, Self::Error>

Performs the conversion.
source§

impl TryInto<i32> for Type

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<i32, Self::Error>

Performs the conversion.
source§

impl TryInto<i64> for Type

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<i64, Self::Error>

Performs the conversion.
source§

impl TryInto<i8> for Type

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<i8, Self::Error>

Performs the conversion.
source§

impl TryInto<isize> for Type

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<isize, Self::Error>

Performs the conversion.
source§

impl TryInto<u128> for Type

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<u128, Self::Error>

Performs the conversion.
source§

impl TryInto<u16> for Type

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<u16, Self::Error>

Performs the conversion.
source§

impl TryInto<u32> for Type

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<u32, Self::Error>

Performs the conversion.
source§

impl TryInto<u64> for Type

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<u64, Self::Error>

Performs the conversion.
source§

impl TryInto<u8> for Type

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<u8, Self::Error>

Performs the conversion.
source§

impl TryInto<usize> for Type

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<usize, Self::Error>

Performs the conversion.

Auto Trait Implementations§

§

impl RefUnwindSafe for Type

§

impl Send for Type

§

impl Sync for Type

§

impl Unpin for Type

§

impl UnwindSafe for Type

Blanket Implementations§

source§

impl<T> Any for Twhere
    T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere
    T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere
    T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere
    U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere
    T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for Twhere
    T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere
    U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere
    U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere
    V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> DeserializeOwned for Twhere
    T: for<'de> Deserialize<'de>,