Struct dsntk_model::FunctionItem
source · 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 copy 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 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