pub struct LeanExportSignature { /* private fields */ }Expand description
Trusted manifest signature for one Lean export.
Implementations§
Source§impl LeanExportSignature
impl LeanExportSignature
Sourcepub fn function(
symbol: impl Into<String>,
args: impl Into<Vec<LeanExportArgAbi>>,
result: LeanExportReturnAbi,
) -> Self
pub fn function( symbol: impl Into<String>, args: impl Into<Vec<LeanExportArgAbi>>, result: LeanExportReturnAbi, ) -> Self
Construct a manifest signature for a function export.
Sourcepub fn global(symbol: impl Into<String>, result: LeanExportReturnAbi) -> Self
pub fn global(symbol: impl Into<String>, result: LeanExportReturnAbi) -> Self
Construct a manifest signature for a global export.
Sourcepub const fn kind(&self) -> LeanExportSymbolKind
pub const fn kind(&self) -> LeanExportSymbolKind
Function/global classification.
Sourcepub fn args(&self) -> &[LeanExportArgAbi]
pub fn args(&self) -> &[LeanExportArgAbi]
Argument ABI slots.
Sourcepub const fn result(&self) -> LeanExportReturnAbi
pub const fn result(&self) -> LeanExportReturnAbi
Result ABI slot.
Trait Implementations§
Source§impl Clone for LeanExportSignature
impl Clone for LeanExportSignature
Source§fn clone(&self) -> LeanExportSignature
fn clone(&self) -> LeanExportSignature
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LeanExportSignature
impl Debug for LeanExportSignature
Source§impl PartialEq for LeanExportSignature
impl PartialEq for LeanExportSignature
Source§fn eq(&self, other: &LeanExportSignature) -> bool
fn eq(&self, other: &LeanExportSignature) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for LeanExportSignature
impl StructuralPartialEq for LeanExportSignature
Auto Trait Implementations§
impl Freeze for LeanExportSignature
impl RefUnwindSafe for LeanExportSignature
impl Send for LeanExportSignature
impl Sync for LeanExportSignature
impl Unpin for LeanExportSignature
impl UnsafeUnpin for LeanExportSignature
impl UnwindSafe for LeanExportSignature
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