pub struct CallStep {
pub scope: Option<String>,
pub method: String,
pub args: Vec<String>,
}Expand description
One link in a fluent method-call chain - $table->string('x') or
Route::get('/x', ...) (a scoped_call_expression, scope: Some)
vs. ->nullable()/->name(...) (a member_call_expression chained
off a preceding call, scope: None).
Fields§
§scope: Option<String>§method: String§args: Vec<String>Each argument’s raw source text, still exactly as written (a
string literal still quoted, Foo::class verbatim, an inline
closure’s full source) - callers that need an unquoted string call
unquote themselves; callers that need to recurse into a closure
argument’s structure use argument_node on the original node
instead of this field.
Trait Implementations§
Auto Trait Implementations§
impl Forget for CallStep
impl Freeze for CallStep
impl Move for CallStep
impl RefUnwindSafe for CallStep
impl Send for CallStep
impl Sync for CallStep
impl Unpin for CallStep
impl UnsafeUnpin for CallStep
impl UnwindSafe for CallStep
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