pub struct GenericFunction {
pub lifetime_params: Vec<String>,
pub type_params: Vec<String>,
pub params: Vec<(String, Type)>,
pub return_type: Option<Type>,
pub body: Vec<Stmt>,
}Expand description
Information about a generic function
Fields§
§lifetime_params: Vec<String>§type_params: Vec<String>§params: Vec<(String, Type)>§return_type: Option<Type>§body: Vec<Stmt>Trait Implementations§
Source§impl Clone for GenericFunction
impl Clone for GenericFunction
Source§fn clone(&self) -> GenericFunction
fn clone(&self) -> GenericFunction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GenericFunction
impl RefUnwindSafe for GenericFunction
impl Send for GenericFunction
impl Sync for GenericFunction
impl Unpin for GenericFunction
impl UnsafeUnpin for GenericFunction
impl UnwindSafe for GenericFunction
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