pub struct ExecuteData { /* private fields */ }Expand description
Wrapper of zend_execute_data.
Implementations§
Source§impl ExecuteData
impl ExecuteData
Sourcepub unsafe fn from_ptr<'a>(ptr: *const zend_execute_data) -> &'a Self
pub unsafe fn from_ptr<'a>(ptr: *const zend_execute_data) -> &'a Self
Sourcepub unsafe fn try_from_ptr<'a>(
ptr: *const zend_execute_data,
) -> Option<&'a Self>
pub unsafe fn try_from_ptr<'a>( ptr: *const zend_execute_data, ) -> Option<&'a Self>
Sourcepub unsafe fn from_mut_ptr<'a>(ptr: *mut zend_execute_data) -> &'a mut Self
pub unsafe fn from_mut_ptr<'a>(ptr: *mut zend_execute_data) -> &'a mut Self
Sourcepub unsafe fn try_from_mut_ptr<'a>(
ptr: *mut zend_execute_data,
) -> Option<&'a mut Self>
pub unsafe fn try_from_mut_ptr<'a>( ptr: *mut zend_execute_data, ) -> Option<&'a mut Self>
Sourcepub const fn as_ptr(&self) -> *const zend_execute_data
pub const fn as_ptr(&self) -> *const zend_execute_data
Returns a raw pointer wrapped.
Sourcepub fn as_mut_ptr(&mut self) -> *mut zend_execute_data
pub fn as_mut_ptr(&mut self) -> *mut zend_execute_data
Returns a raw pointer wrapped.
Sourcepub fn common_num_args(&self) -> u32
pub fn common_num_args(&self) -> u32
Gets common arguments count.
Sourcepub fn common_required_num_args(&self) -> usize
pub fn common_required_num_args(&self) -> usize
Gets common required arguments count.
Sourcepub fn common_arg_info(&self) -> *mut zend_arg_info
pub fn common_arg_info(&self) -> *mut zend_arg_info
Gets first common argument info.
Sourcepub fn get_opline_lineno(&self) -> Option<u32>
pub fn get_opline_lineno(&self) -> Option<u32>
Gets the current opline line number if available. This represents the line number in the source code where the current operation is being executed.
Sourcepub fn get_return_value(&self) -> Option<&ZVal>
pub fn get_return_value(&self) -> Option<&ZVal>
Gets associated return value.
Sourcepub fn get_return_value_mut(&mut self) -> Option<&mut ZVal>
pub fn get_return_value_mut(&mut self) -> Option<&mut ZVal>
Gets mutable reference to associated return value.
Sourcepub fn get_return_value_mut_ptr(&mut self) -> *mut ZVal
pub fn get_return_value_mut_ptr(&mut self) -> *mut ZVal
Gets associated return value pointer.
Sourcepub fn get_return_value_ptr(&self) -> *const ZVal
pub fn get_return_value_ptr(&self) -> *const ZVal
Gets immutable pointer to associated return value.
Sourcepub fn get_this_mut(&mut self) -> Option<&mut ZObj>
pub fn get_this_mut(&mut self) -> Option<&mut ZObj>
Gets associated mutable $this object if exists.
Sourcepub fn get_called_scope(&mut self) -> Option<&ClassEntry>
pub fn get_called_scope(&mut self) -> Option<&ClassEntry>
Gets associated called scope if it exists
Sourcepub fn get_parameter(&self, index: usize) -> &ZVal
pub fn get_parameter(&self, index: usize) -> &ZVal
Gets parameter by index.
Sourcepub fn get_mut_parameter(&mut self, index: usize) -> &mut ZVal
pub fn get_mut_parameter(&mut self, index: usize) -> &mut ZVal
Gets mutable parameter by index.
Auto Trait Implementations§
impl !Send for ExecuteData
impl !Sync for ExecuteData
impl Freeze for ExecuteData
impl RefUnwindSafe for ExecuteData
impl Unpin for ExecuteData
impl UnsafeUnpin for ExecuteData
impl UnwindSafe for ExecuteData
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