Struct lib_ruby_parser::nodes::CSend [−][src]
#[repr(C)]pub struct CSend { pub recv: Ptr<Node>, pub method_name: StringPtr, pub args: List<Node>, pub dot_l: Loc, pub selector_l: MaybeLoc, pub begin_l: MaybeLoc, pub end_l: MaybeLoc, pub operator_l: MaybeLoc, pub expression_l: Loc, }
Represents conditional method call using &. operator
Fields
recv: Ptr<Node>Receiver of the method call, Int("1") for 1&.foo
method_name: StringPtrName of the method, String("foo") for 1&.foo
args: List<Node>List of arguments
foo&.bar(42)
# and also setters like
foo&.bar = 42
dot_l: LocLocation of the &. operator
foo&.bar
~~
selector_l: MaybeLocLocation of the method name
foo&.bar(42)
~~~
None in a very special case when method call is implicit (i.e. foo&.())
begin_l: MaybeLocLocation of the open parenthesis
foo&.bar(42)
~
None if there are no parentheses
end_l: MaybeLocLocation of the closing parenthesis
foo&.bar(42)
~
None if there are no parentheses
operator_l: MaybeLocLocation of the operator if CSend is a part of assignment like
foo&.bar = 1
~
None for a regular call.
expression_l: LocLocation of the full expression
foo&.bar(42)
~~~~~~~~~~~~
Trait Implementations
impl Clone for CSend[src]
impl Debug for CSend[src]
impl PartialEq<CSend> for CSend[src]
impl StructuralPartialEq for CSend[src]
Auto Trait Implementations
impl RefUnwindSafe for CSend
impl Send for CSend
impl Sync for CSend
impl Unpin for CSend
impl UnwindSafe for CSend
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,
pub fn borrow_mut(&mut self) -> &mut T[src]
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.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
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.
pub 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>,