Struct darklua_core::nodes::VariadicTypePack
source · pub struct VariadicTypePack { /* private fields */ }
Implementations§
source§impl VariadicTypePack
impl VariadicTypePack
pub fn new(type: impl Into<Type>) -> Self
pub fn get_type(&self) -> &Type
pub fn mutate_type(&mut self) -> &mut Type
pub fn with_token(self, token: Token) -> Self
pub fn set_token(&mut self, token: Token)
pub fn get_token(&self) -> Option<&Token>
pub fn mutate_token(&mut self) -> Option<&mut Token>
pub fn clear_comments(&mut self)
pub fn clear_whitespaces(&mut self)
Trait Implementations§
source§impl Clone for VariadicTypePack
impl Clone for VariadicTypePack
source§fn clone(&self) -> VariadicTypePack
fn clone(&self) -> VariadicTypePack
Returns a copy 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 VariadicTypePack
impl Debug for VariadicTypePack
source§impl From<VariadicTypePack> for FunctionReturnType
impl From<VariadicTypePack> for FunctionReturnType
source§fn from(variadic_type_pack: VariadicTypePack) -> Self
fn from(variadic_type_pack: VariadicTypePack) -> Self
Converts to this type from the input type.
source§impl From<VariadicTypePack> for GenericTypePackDefault
impl From<VariadicTypePack> for GenericTypePackDefault
source§fn from(variadic_type_pack: VariadicTypePack) -> Self
fn from(variadic_type_pack: VariadicTypePack) -> Self
Converts to this type from the input type.
source§impl From<VariadicTypePack> for TypeParameter
impl From<VariadicTypePack> for TypeParameter
source§fn from(value: VariadicTypePack) -> Self
fn from(value: VariadicTypePack) -> Self
Converts to this type from the input type.
source§impl From<VariadicTypePack> for VariadicArgumentType
impl From<VariadicTypePack> for VariadicArgumentType
source§fn from(variadic_type_pack: VariadicTypePack) -> Self
fn from(variadic_type_pack: VariadicTypePack) -> Self
Converts to this type from the input type.
source§impl PartialEq for VariadicTypePack
impl PartialEq for VariadicTypePack
source§fn eq(&self, other: &VariadicTypePack) -> bool
fn eq(&self, other: &VariadicTypePack) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for VariadicTypePack
impl StructuralEq for VariadicTypePack
impl StructuralPartialEq for VariadicTypePack
Auto Trait Implementations§
impl RefUnwindSafe for VariadicTypePack
impl Send for VariadicTypePack
impl Sync for VariadicTypePack
impl Unpin for VariadicTypePack
impl UnwindSafe for VariadicTypePack
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
§fn extract_context(self, _original_input: I)
fn extract_context(self, _original_input: I)
Given the context attached to a nom error, and given the original
input to the nom parser, extract more the useful context information. Read more
§impl<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
§fn recreate_context(_original_input: I, tail: I) -> I
fn recreate_context(_original_input: I, tail: I) -> I
Given the original input, as well as the context reported by nom,
recreate a context in the original string where the error occurred. Read more