pub struct PhpFunction {
pub name: String,
pub parameters: Vec<PhpParameter>,
pub return_type: Option<PhpType>,
pub body: Box<PhpStatement>,
pub by_ref: bool,
}Expand description
PHP 函数
Fields§
§name: String§parameters: Vec<PhpParameter>§return_type: Option<PhpType>§body: Box<PhpStatement>§by_ref: boolTrait Implementations§
Source§impl Clone for PhpFunction
impl Clone for PhpFunction
Source§fn clone(&self) -> PhpFunction
fn clone(&self) -> PhpFunction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PhpFunction
impl Debug for PhpFunction
Source§impl<'de> Deserialize<'de> for PhpFunction
impl<'de> Deserialize<'de> for PhpFunction
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
Source§impl PartialEq for PhpFunction
impl PartialEq for PhpFunction
Source§impl Serialize for PhpFunction
impl Serialize for PhpFunction
impl StructuralPartialEq for PhpFunction
Auto Trait Implementations§
impl Freeze for PhpFunction
impl RefUnwindSafe for PhpFunction
impl Send for PhpFunction
impl Sync for PhpFunction
impl Unpin for PhpFunction
impl UnwindSafe for PhpFunction
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