Skip to main content

Module describe

Module describe 

Source
Expand description

Types used to describe downstream extensions. Used by the cargo-php CLI application to generate PHP stub files used by IDEs.

The types live in ext-php-rs-introspection so cargo-php can read a Description without linking the Zend engine. This module re-exports them and converts the builders into them.

Modules§

abi
ABI-stable standard library types.

Structs§

Class
Represents an exported class or interface.
Constant
Represents an exported constant, stand alone or attached to a class.
Description
Representation of the extension used to generate PHP stubs.
DocBlock
Represents a set of comments on an export.
Enum
Represents an exported enum.
EnumCase
Represents a case in an exported enum.
Function
Represents an exported function.
Method
Represents a method attached to an exported class.
Module
Represents an extension containing a set of exports.
Parameter
Represents a parameter attached to an exported function or method.
Property
Represents a property attached to an exported class.
Retval
Represents a value returned from a function or method.

Enums§

DataType
Valid data types for PHP.
MethodType
Enumerator used to differentiate between methods.
Visibility
Enumerator used to differentiate between different method and property visibilties.

Constants§

VERSION
Version of the description ABI, the version of this crate.

Traits§

ToStub
Implemented on types which can be converted into PHP stubs.

Type Aliases§

DocComments
A slice of strings containing documentation comments.