[][src]Struct smash::lib::L2CValue

#[repr(C)]pub struct L2CValue {
    pub val_type: L2CValueType,
    pub unk1: u32,
    pub inner: L2CValueInner,
    pub unk2: u8,
}

Fields

val_type: L2CValueTypeunk1: u32inner: L2CValueInnerunk2: u8

Methods

impl L2CValue[src]

pub const fn new_void() -> Self[src]

pub const fn new_bool(val: bool) -> Self[src]

pub const fn new_int(val: u64) -> Self[src]

pub const fn new_num(val: f32) -> Self[src]

pub const fn new_hash(val: u64) -> Self[src]

pub fn try_get_bool(&self) -> Option<bool>[src]

pub fn get_bool(&self) -> bool[src]

pub fn try_get_int(&self) -> Option<u64>[src]

pub fn get_int(&self) -> u64[src]

pub fn try_get_num(&self) -> Option<f32>[src]

pub fn get_num(&self) -> f32[src]

pub fn try_get_ptr<T>(&self) -> Option<*mut T>[src]

pub fn get_ptr<T>(&self) -> *mut T[src]

pub fn assign(&mut self, other: &Self)[src]

impl L2CValue[src]

pub unsafe fn push_variadic(
    &mut self,
    arg1: u64,
    arg2: *const c_char,
    arg3: *mut Variadic
)
[src]

pub unsafe fn new() -> Self[src]

pub unsafe fn new1(val: bool) -> Self[src]

pub unsafe fn new2(val: c_int) -> Self[src]

pub unsafe fn new3(val: u64) -> Self[src]

pub unsafe fn new4(val: f32) -> Self[src]

pub unsafe fn new5(val: f64) -> Self[src]

pub unsafe fn new6(str: *const c_char) -> Self[src]

Trait Implementations

impl Clone for L2CValue[src]

impl Copy for L2CValue[src]

impl Debug for L2CValue[src]

impl Default for L2CValue[src]

impl<Idx: LuaTableIndex> Index<Idx> for L2CValue[src]

type Output = L2CValue

The returned type after indexing.

impl<Idx: LuaTableIndex> IndexMut<Idx> for L2CValue[src]

impl Into<L2CValue> for LuaConst[src]

impl Into<L2CValue> for bool[src]

impl Into<L2CValue> for f32[src]

impl Into<L2CValue> for f64[src]

impl Into<L2CValue> for i8[src]

impl Into<L2CValue> for u8[src]

impl Into<L2CValue> for i16[src]

impl Into<L2CValue> for u16[src]

impl Into<L2CValue> for i32[src]

impl Into<L2CValue> for u32[src]

impl Into<L2CValue> for u64[src]

impl Into<L2CValue> for i64[src]

impl LuaTableIndex for L2CValue[src]

impl PartialEq<L2CValue> for LuaConst[src]

impl PartialEq<LuaConst> for L2CValue[src]

impl PartialOrd<LuaConst> for L2CValue[src]

Auto Trait Implementations

impl RefUnwindSafe for L2CValue

impl !Send for L2CValue

impl !Sync for L2CValue

impl Unpin for L2CValue

impl UnwindSafe for L2CValue

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.