[][src]Enum protonsdk_variant::Variant

pub enum Variant {
    None(),
    Float(f32),
    Str(String),
    Vec2(f32f32),
    Vec3(f32f32f32),
    UInt(u32),
    Int(i32),
}

Variants

None()
Float(f32)
Str(String)
Vec2(f32f32)
Vec3(f32f32f32)
UInt(u32)
Int(i32)

Implementations

impl Variant[src]

pub fn pack<W>(&self, w: &mut W) -> Result<()> where
    W: Write + Seek
[src]

Trait Implementations

impl Debug for Variant[src]

impl<'_> From<&'_ [f32; 2]> for Variant[src]

impl<'_> From<&'_ [f32; 3]> for Variant[src]

impl<'_> From<&'_ str> for Variant[src]

impl From<String> for Variant[src]

impl From<f32> for Variant[src]

impl From<f64> for Variant[src]

impl From<i128> for Variant[src]

impl From<i16> for Variant[src]

impl From<i32> for Variant[src]

impl From<i64> for Variant[src]

impl From<i8> for Variant[src]

impl From<u128> for Variant[src]

impl From<u16> for Variant[src]

impl From<u32> for Variant[src]

impl From<u64> for Variant[src]

impl From<u8> for Variant[src]

Auto Trait Implementations

impl RefUnwindSafe for Variant

impl Send for Variant

impl Sync for Variant

impl Unpin for Variant

impl UnwindSafe for Variant

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, 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.