[−][src]Struct full_moon::ast::MethodCall
A method call, such as x:y()
Methods
impl<'a> MethodCall<'a>
[src]
pub fn new(name: Cow<'a, TokenReference<'a>>, args: FunctionArgs<'a>) -> Self
[src]
Returns a new MethodCall from the given name and args
pub fn colon_token(&self) -> &TokenReference<'a>
[src]
The :
in x:y()
pub fn args(&self) -> &FunctionArgs<'a>
[src]
The arguments of a method call, the x, y, z
part of method:call(x, y, z)
pub fn name(&self) -> &TokenReference<'a>
[src]
The method being called, the call
part of method:call()
pub fn with_colon_token(self, colon_token: Cow<'a, TokenReference<'a>>) -> Self
[src]
Returns a new MethodCall with the given :
token
pub fn with_name(self, name: Cow<'a, TokenReference<'a>>) -> Self
[src]
Returns a new MethodCall with the given name
pub fn with_args(self, args: FunctionArgs<'a>) -> Self
[src]
Returns a new MethodCall with the given args
Trait Implementations
impl<'a> Clone for MethodCall<'a>
[src]
fn clone(&self) -> MethodCall<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Debug for MethodCall<'a>
[src]
impl<'de: 'a, 'a> Deserialize<'de> for MethodCall<'a>
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<'a> Display for MethodCall<'a>
[src]
impl<'a> Node<'a> for MethodCall<'a>
[src]
fn start_position(&self) -> Option<Position>
[src]
fn end_position(&self) -> Option<Position>
[src]
fn similar(&self, other: &Self) -> bool
[src]
fn tokens<'b>(&'b self) -> Tokens<'a, 'b>
[src]
fn range(&self) -> Option<(Position, Position)>
[src]
fn surrounding_trivia<'b>(
&'b self
) -> (Vec<Cow<'b, Token<'ast>>>, Vec<Cow<'b, Token<'ast>>>)
[src]
&'b self
) -> (Vec<Cow<'b, Token<'ast>>>, Vec<Cow<'b, Token<'ast>>>)
impl<'a> Owned for MethodCall<'a>
[src]
type Owned = MethodCall<'static>
What an owned version of the object looks like. Usually contains a 'static
lifetime.
fn owned(&self) -> Self::Owned
[src]
impl<'a> PartialEq<MethodCall<'a>> for MethodCall<'a>
[src]
fn eq(&self, other: &MethodCall<'a>) -> bool
[src]
fn ne(&self, other: &MethodCall<'a>) -> bool
[src]
impl<'a> Serialize for MethodCall<'a>
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'a> StructuralPartialEq for MethodCall<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for MethodCall<'a>
impl<'a> Send for MethodCall<'a>
impl<'a> Sync for MethodCall<'a>
impl<'a> Unpin for MethodCall<'a>
impl<'a> UnwindSafe for MethodCall<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,