pub struct Signature {
pub params: Vec<(String, Type)>,
pub result: Type,
pub generic: Vec<String>,
}Expand description
A Tool declaration’s signature, for a declaration returning result.
Type::Param counts generic.
Fields§
§params: Vec<(String, Type)>Each parameter’s name and type, in declaration order.
result: TypeThe declared result type, R: a call answers Ok with a value of it.
generic: Vec<String>The type parameters’ names, in declaration order.
Trait Implementations§
impl Eq for Signature
impl StructuralPartialEq for Signature
Auto Trait Implementations§
impl Forget for Signature
impl Freeze for Signature
impl Move for Signature
impl RefUnwindSafe for Signature
impl Send for Signature
impl Sync for Signature
impl Unpin for Signature
impl UnsafeUnpin for Signaturewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<(String, Type)>: UnsafeUnpin,
*const Type is !null: UnsafeUnpin,
PhantomData<Type>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for Signature
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