pub struct ToolDecl {
pub name: String,
pub params: Vec<Param>,
pub return_type: Option<TypeName>,
pub body: Block,
pub span: Span,
}Expand description
Tool declaration: tool name(params) -> return_type { body }
Fields§
§name: String§params: Vec<Param>§return_type: Option<TypeName>§body: Block§span: SpanTrait Implementations§
impl StructuralPartialEq for ToolDecl
Auto Trait Implementations§
impl Freeze for ToolDecl
impl RefUnwindSafe for ToolDecl
impl Send for ToolDecl
impl Sync for ToolDecl
impl Unpin for ToolDecl
impl UnwindSafe for ToolDecl
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