pub struct FunctionSchema {
pub name: String,
pub args: Vec<FunctionArgSchema>,
pub return_type: TypeSchema,
pub body: Option<String>,
pub extern_layout: Option<String>,
pub annotations: Option<FunctionAnnotations>,
}Fields§
§name: String§args: Vec<FunctionArgSchema>§return_type: TypeSchema§body: Option<String>§extern_layout: Option<String>§annotations: Option<FunctionAnnotations>Trait Implementations§
Source§impl Clone for FunctionSchema
impl Clone for FunctionSchema
Source§fn clone(&self) -> FunctionSchema
fn clone(&self) -> FunctionSchema
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 FunctionSchema
impl Debug for FunctionSchema
Source§impl Display for FunctionSchema
impl Display for FunctionSchema
Source§impl Into<TokenStream> for FunctionSchema
impl Into<TokenStream> for FunctionSchema
Source§fn into(self) -> TokenStream
fn into(self) -> TokenStream
Convert a function schema into tokens for inclusion in a trait schema.
Auto Trait Implementations§
impl Freeze for FunctionSchema
impl RefUnwindSafe for FunctionSchema
impl Send for FunctionSchema
impl Sync for FunctionSchema
impl Unpin for FunctionSchema
impl UnwindSafe for FunctionSchema
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