pub struct LeanInstanceOptions {
pub typeclass: Ident,
pub krate: Option<Path>,
}Expand description
Options for the #[lean_instance] macro.
Fields§
§typeclass: IdentThe type class to implement (BEq, Hashable, Repr, ToString, Ord).
krate: Option<Path>Path to the leo3 crate (for re-exports).
Trait Implementations§
Source§impl Parse for LeanInstanceOptions
impl Parse for LeanInstanceOptions
fn parse(input: ParseStream<'_>) -> Result<Self>
Auto Trait Implementations§
impl !Send for LeanInstanceOptions
impl !Sync for LeanInstanceOptions
impl Freeze for LeanInstanceOptions
impl RefUnwindSafe for LeanInstanceOptions
impl Unpin for LeanInstanceOptions
impl UnsafeUnpin for LeanInstanceOptions
impl UnwindSafe for LeanInstanceOptions
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