pub enum VariadicType {
Multi(Vec<LuaType>),
Base(LuaType),
}Variants§
Implementations§
Source§impl VariadicType
impl VariadicType
pub fn get_type(&self, idx: usize) -> Option<&LuaType>
pub fn get_new_variadic_from(&self, idx: usize) -> VariadicType
pub fn contain_tpl(&self) -> bool
Sourcepub fn get_min_len(&self) -> Option<usize>
pub fn get_min_len(&self) -> Option<usize>
获取可变参数的最小长度, 如果可变参数是无限长度, 则返回 None
Sourcepub fn get_max_len(&self) -> Option<usize>
pub fn get_max_len(&self) -> Option<usize>
获取可变参数的最大长度, 如果可变参数是无限长度, 则返回 None
Trait Implementations§
Source§impl Clone for VariadicType
impl Clone for VariadicType
Source§fn clone(&self) -> VariadicType
fn clone(&self) -> VariadicType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VariadicType
impl Debug for VariadicType
Source§impl Hash for VariadicType
impl Hash for VariadicType
Source§impl PartialEq for VariadicType
impl PartialEq for VariadicType
Source§impl TypeVisitTrait for VariadicType
impl TypeVisitTrait for VariadicType
impl Eq for VariadicType
impl StructuralPartialEq for VariadicType
Auto Trait Implementations§
impl Freeze for VariadicType
impl RefUnwindSafe for VariadicType
impl Send for VariadicType
impl Sync for VariadicType
impl Unpin for VariadicType
impl UnwindSafe for VariadicType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more