pub struct FunctionStorage {
pub fqn: Arc<str>,
pub short_name: Arc<str>,
pub params: Vec<FnParam>,
pub return_type: Option<Union>,
pub inferred_return_type: Option<Union>,
pub template_params: Vec<TemplateParam>,
pub assertions: Vec<Assertion>,
pub throws: Vec<Arc<str>>,
pub is_deprecated: bool,
pub is_pure: bool,
pub location: Option<Location>,
}Fields§
§fqn: Arc<str>§short_name: Arc<str>§params: Vec<FnParam>§return_type: Option<Union>§inferred_return_type: Option<Union>§template_params: Vec<TemplateParam>§assertions: Vec<Assertion>§throws: Vec<Arc<str>>§is_deprecated: bool§is_pure: bool§location: Option<Location>Implementations§
Source§impl FunctionStorage
impl FunctionStorage
pub fn effective_return_type(&self) -> Option<&Union>
Trait Implementations§
Source§impl Clone for FunctionStorage
impl Clone for FunctionStorage
Source§fn clone(&self) -> FunctionStorage
fn clone(&self) -> FunctionStorage
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 FunctionStorage
impl Debug for FunctionStorage
Source§impl<'de> Deserialize<'de> for FunctionStorage
impl<'de> Deserialize<'de> for FunctionStorage
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 FunctionStorage
impl PartialEq for FunctionStorage
Source§impl Serialize for FunctionStorage
impl Serialize for FunctionStorage
impl StructuralPartialEq for FunctionStorage
Auto Trait Implementations§
impl Freeze for FunctionStorage
impl RefUnwindSafe for FunctionStorage
impl Send for FunctionStorage
impl Sync for FunctionStorage
impl Unpin for FunctionStorage
impl UnsafeUnpin for FunctionStorage
impl UnwindSafe for FunctionStorage
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