pub struct Exported {
pub lean: String,
pub type_params: Vec<String>,
pub instances: Vec<(String, String)>,
}Expand description
The arguments of #[leanfran::exported(..)]: the Lean name, and for a generic function
generated from rust_instances the type parameters of the Lean function and its
instantiations by Rust type (type_params = ["α"], instances = [("u32", "f.inst_U32")]).
Fields§
§lean: String§type_params: Vec<String>§instances: Vec<(String, String)>Trait Implementations§
impl StructuralPartialEq for Exported
Auto Trait Implementations§
impl Forget for Exported
impl Freeze for Exportedwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<(String, String)>: Freeze,
impl Move for Exported
impl RefUnwindSafe for Exported
impl Send for Exportedwhere
RawVecInner: Send,
impl Sync for Exportedwhere
RawVecInner: Sync,
impl Unpin for Exported
impl UnsafeUnpin for Exportedwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
impl UnwindSafe for Exportedwhere
RawVecInner: UnwindSafe,
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