Struct ext_php_rs::bindings::_zend_string[][src]

#[repr(C)]
pub struct _zend_string { pub gc: zend_refcounted_h, pub h: zend_ulong, pub len: size_t, pub val: [c_char; 1], }

Fields

gc: zend_refcounted_hh: zend_ulonglen: size_tval: [c_char; 1]

Implementations

Returns the length of the string.

Returns true if the string is empty, false otherwise.

Returns a reference to the underlying CStr inside the Zend string.

Attempts to return a reference to the underlying str inside the Zend string.

Returns the None variant if the CStr contains non-UTF-8 characters.

Trait Implementations

Performs the conversion.

Immutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.