pub struct MethodStorage {Show 17 fields
pub name: Arc<str>,
pub fqcn: Arc<str>,
pub params: Vec<FnParam>,
pub return_type: Option<Union>,
pub inferred_return_type: Option<Union>,
pub visibility: Visibility,
pub is_static: bool,
pub is_abstract: bool,
pub is_final: bool,
pub is_constructor: bool,
pub template_params: Vec<TemplateParam>,
pub assertions: Vec<Assertion>,
pub throws: Vec<Arc<str>>,
pub is_deprecated: bool,
pub is_internal: bool,
pub is_pure: bool,
pub location: Option<Location>,
}Fields§
§name: Arc<str>§fqcn: Arc<str>§params: Vec<FnParam>§return_type: Option<Union>Type from annotation (@return / native type hint). None means unannotated.
inferred_return_type: Option<Union>Type inferred from body analysis (filled in during pass 2).
visibility: Visibility§is_static: bool§is_abstract: bool§is_final: bool§is_constructor: bool§template_params: Vec<TemplateParam>§assertions: Vec<Assertion>§throws: Vec<Arc<str>>§is_deprecated: bool§is_internal: bool§is_pure: bool§location: Option<Location>Implementations§
Source§impl MethodStorage
impl MethodStorage
pub fn effective_return_type(&self) -> Option<&Union>
Trait Implementations§
Source§impl Clone for MethodStorage
impl Clone for MethodStorage
Source§fn clone(&self) -> MethodStorage
fn clone(&self) -> MethodStorage
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 MethodStorage
impl Debug for MethodStorage
Source§impl<'de> Deserialize<'de> for MethodStorage
impl<'de> Deserialize<'de> for MethodStorage
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 MethodStorage
impl PartialEq for MethodStorage
Source§impl Serialize for MethodStorage
impl Serialize for MethodStorage
impl StructuralPartialEq for MethodStorage
Auto Trait Implementations§
impl Freeze for MethodStorage
impl RefUnwindSafe for MethodStorage
impl Send for MethodStorage
impl Sync for MethodStorage
impl Unpin for MethodStorage
impl UnsafeUnpin for MethodStorage
impl UnwindSafe for MethodStorage
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