Struct darklua_core::nodes::FunctionName
source · [−]pub struct FunctionName { /* private fields */ }Implementations
sourceimpl FunctionName
impl FunctionName
pub fn new(
name: Identifier,
field_names: Vec<Identifier>,
method: Option<Identifier>
) -> Self
pub fn from_name<S: Into<Identifier>>(name: S) -> Self
pub fn with_tokens(self, tokens: FunctionNameTokens) -> Self
pub fn set_tokens(&mut self, tokens: FunctionNameTokens)
pub fn get_tokens(&self) -> Option<&FunctionNameTokens>
pub fn with_field<S: Into<Identifier>>(self, field: S) -> Self
pub fn with_fields(self, field_names: Vec<Identifier>) -> Self
pub fn with_method<S: Into<Identifier>>(self, method: S) -> Self
pub fn push_field<S: Into<Identifier>>(&mut self, field: S)
pub fn remove_method(&mut self) -> Option<Identifier>
pub fn get_method(&self) -> Option<&Identifier>
pub fn get_name(&self) -> &Identifier
pub fn set_name(&mut self, name: Identifier)
pub fn get_field_names(&self) -> &Vec<Identifier>
pub fn mutate_identifier(&mut self) -> &mut Identifier
pub fn clear_comments(&mut self)
pub fn clear_whitespaces(&mut self)
Trait Implementations
sourceimpl Clone for FunctionName
impl Clone for FunctionName
sourcefn clone(&self) -> FunctionName
fn clone(&self) -> FunctionName
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for FunctionName
impl Debug for FunctionName
sourceimpl PartialEq<FunctionName> for FunctionName
impl PartialEq<FunctionName> for FunctionName
sourcefn eq(&self, other: &FunctionName) -> bool
fn eq(&self, other: &FunctionName) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &FunctionName) -> bool
fn ne(&self, other: &FunctionName) -> bool
This method tests for !=.
impl Eq for FunctionName
impl StructuralEq for FunctionName
impl StructuralPartialEq for FunctionName
Auto Trait Implementations
impl RefUnwindSafe for FunctionName
impl Send for FunctionName
impl Sync for FunctionName
impl Unpin for FunctionName
impl UnwindSafe for FunctionName
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more