pub trait ToStub {
// Required method
fn fmt_stub(&self, buf: &mut String) -> Result<(), Error>;
// Provided method
fn to_stub(&self) -> Result<String, Error> { ... }
}Expand description
Implemented on types which can be converted into PHP stubs.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".