pub trait ToStub {
// Required method
fn fmt_stub(&self, buf: &mut String) -> FmtResult;
// Provided method
fn to_stub(&self) -> Result<String, FmtError> { ... }
}Expand description
Implemented on types which can be converted into PHP stubs.
Required Methods§
Provided Methods§
Implementors§
impl ToStub for DataType
impl ToStub for Visibility
impl ToStub for Class
impl ToStub for Constant
impl ToStub for DocBlock
impl ToStub for Enum
Available on crate feature
enum only.impl ToStub for EnumCase
Available on crate feature
enum only.