#[repr(C)]
pub struct _zend_ini_entry_def { pub name: *const c_char, pub on_modify: Option<unsafe extern "C" fn(entry: *mut zend_ini_entry, new_value: *mut zend_string, mh_arg1: *mut c_void, mh_arg2: *mut c_void, mh_arg3: *mut c_void, stage: c_int) -> c_int>, pub mh_arg1: *mut c_void, pub mh_arg2: *mut c_void, pub mh_arg3: *mut c_void, pub value: *const c_char, pub displayer: Option<unsafe extern "C" fn(ini_entry: *mut zend_ini_entry, type_: c_int)>, pub value_length: u32, pub name_length: u16, pub modifiable: u8, }

Fields§

§name: *const c_char§on_modify: Option<unsafe extern "C" fn(entry: *mut zend_ini_entry, new_value: *mut zend_string, mh_arg1: *mut c_void, mh_arg2: *mut c_void, mh_arg3: *mut c_void, stage: c_int) -> c_int>§mh_arg1: *mut c_void§mh_arg2: *mut c_void§mh_arg3: *mut c_void§value: *const c_char§displayer: Option<unsafe extern "C" fn(ini_entry: *mut zend_ini_entry, type_: c_int)>§value_length: u32§name_length: u16§modifiable: u8

Implementations§

source§

impl _zend_ini_entry_def

source

pub fn new( name: String, default_value: String, permission: IniEntryPermission ) -> Self

Returns an empty ini entry, signifying the end of a ini list.

source

pub fn end() -> Self

Returns an empty ini entry def, signifying the end of a ini list.

source

pub fn into_raw(self) -> *mut Self

Converts the ini entry into a raw and pointer, releasing it to the C world.

source

pub fn register(entries: Vec<Self>, module_number: i32)

Trait Implementations§

source§

impl Clone for _zend_ini_entry_def

source§

fn clone(&self) -> _zend_ini_entry_def

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for _zend_ini_entry_def

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Copy for _zend_ini_entry_def

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.