pub struct Args<'a> { /* private fields */ }Expand description
The arguments of a raw_function call, as PHP passed them. Each accessor reads one argument; nothing is
converted unless asked for.
Implementations§
Source§impl Args<'_>
impl Args<'_>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Sourcepub fn value(&self, i: usize) -> Result<Value, NativeError>
pub fn value(&self, i: usize) -> Result<Value, NativeError>
The ith argument converted, for Rust to read (Value::Null when it was not passed).
Sourcepub fn pass(&self, i: usize) -> Value
pub fn pass(&self, i: usize) -> Value
The ith argument passed through unconverted (Value::Null when it was not passed).
Sourcepub fn pass_from(&self, i: usize) -> Vec<Value>
pub fn pass_from(&self, i: usize) -> Vec<Value>
Every argument from the ith on, passed through.
Sourcepub fn items(&self, i: usize) -> Vec<Value>
pub fn items(&self, i: usize) -> Vec<Value>
The elements of the ith argument, an array, each passed through, in order (empty when it is not an
array).
Sourcepub fn string_hash(&self, i: usize) -> Option<u64>
pub fn string_hash(&self, i: usize) -> Option<u64>
The hash PHP keeps for the ith argument, a string; None for anything else.
Sourcepub fn single_object(&self, i: usize) -> Option<Value>
pub fn single_object(&self, i: usize) -> Option<Value>
The object of an ith argument that is [$object] (an array of one object, at key 0).
Auto Trait Implementations§
impl<'a> !Send for Args<'a>
impl<'a> !Sync for Args<'a>
impl<'a> Forget for Args<'a>
impl<'a> Freeze for Args<'a>
impl<'a> Move for Args<'a>
impl<'a> RefUnwindSafe for Args<'a>
impl<'a> Unpin for Args<'a>
impl<'a> UnsafeUnpin for Args<'a>
impl<'a> UnwindSafe for Args<'a>
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