pub struct PhpMethod {
pub name: String,
pub parameters: Vec<PhpParameter>,
pub return_type: Option<PhpType>,
pub body: Option<Box<PhpStatement>>,
pub modifiers: Vec<PhpModifier>,
pub by_ref: bool,
}Expand description
PHP 方法
Fields§
§name: String§parameters: Vec<PhpParameter>§return_type: Option<PhpType>§body: Option<Box<PhpStatement>>§modifiers: Vec<PhpModifier>§by_ref: boolTrait Implementations§
Source§impl<'de> Deserialize<'de> for PhpMethod
impl<'de> Deserialize<'de> for PhpMethod
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for PhpMethod
Auto Trait Implementations§
impl Freeze for PhpMethod
impl RefUnwindSafe for PhpMethod
impl Send for PhpMethod
impl Sync for PhpMethod
impl Unpin for PhpMethod
impl UnwindSafe for PhpMethod
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