pub struct FunctionItem { /* private fields */ }
Expand description
FunctionItem defines the signature of a function: the parameters and the output type of the function.
Implementations§
Source§impl FunctionItem
impl FunctionItem
Sourcepub fn output_type_ref(&self) -> &Option<String>
pub fn output_type_ref(&self) -> &Option<String>
Returns reference to output type of function.
Sourcepub fn parameters(&self) -> &Vec<InformationItem>
pub fn parameters(&self) -> &Vec<InformationItem>
Returns reference to function parameters defined as collection of InformationItems.
Trait Implementations§
Source§impl Clone for FunctionItem
impl Clone for FunctionItem
Source§fn clone(&self) -> FunctionItem
fn clone(&self) -> FunctionItem
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 moreAuto Trait Implementations§
impl Freeze for FunctionItem
impl RefUnwindSafe for FunctionItem
impl Send for FunctionItem
impl Sync for FunctionItem
impl Unpin for FunctionItem
impl UnwindSafe for FunctionItem
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