#[repr(C)]pub struct Description {
pub version: Str,
pub module: Module,
}Expand description
Representation of the extension used to generate PHP stubs.
version stays the first field forever: cargo-php reads it through the
pointer before trusting the rest of the layout, so it has to sit at an
offset that never moves. The value is returned by pointer rather than by
value so a larger layout on the extension side cannot overrun a buffer
sized by the CLI.
Fields§
§version: StrVersion of ext-php-rs-introspection the extension was built with.
module: ModuleExtension description.
Implementations§
Source§impl Description
impl Description
Sourcepub fn new(module: Module) -> Description
pub fn new(module: Module) -> Description
Auto Trait Implementations§
impl !Send for Description
impl !Sync for Description
impl Freeze for Description
impl RefUnwindSafe for Description
impl Unpin for Description
impl UnsafeUnpin for Description
impl UnwindSafe for Description
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