pub struct any;Expand description
Stands for a value of any type.
This is a documentation convention, not a real Lua type: where a
signature says any, the function accepts (or may return) a value of
any of the basic types — nil, boolean, number,
string, table, function, userdata or thread.
Use type to find out at run time which type a
value actually has:
print(type("hi"), type(42), type({})) --> string number tableAuto Trait Implementations§
impl Freeze for any
impl RefUnwindSafe for any
impl Send for any
impl Sync for any
impl Unpin for any
impl UnsafeUnpin for any
impl UnwindSafe for any
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