pub struct LeanExportReturnAbi { /* private fields */ }Expand description
ABI shape of an exported result.
Implementations§
Source§impl LeanExportReturnAbi
impl LeanExportReturnAbi
Sourcepub const fn new(
repr: LeanExportAbiRepr,
ownership: LeanExportOwnership,
convention: LeanExportResultConvention,
) -> Self
pub const fn new( repr: LeanExportAbiRepr, ownership: LeanExportOwnership, convention: LeanExportResultConvention, ) -> Self
Construct the ABI shape for an exported result slot.
Sourcepub const fn repr(self) -> LeanExportAbiRepr
pub const fn repr(self) -> LeanExportAbiRepr
C representation for this result.
Sourcepub const fn ownership(self) -> LeanExportOwnership
pub const fn ownership(self) -> LeanExportOwnership
Ownership convention for this result.
Sourcepub const fn convention(self) -> LeanExportResultConvention
pub const fn convention(self) -> LeanExportResultConvention
IO/result convention for this result.
Trait Implementations§
Source§impl Clone for LeanExportReturnAbi
impl Clone for LeanExportReturnAbi
Source§fn clone(&self) -> LeanExportReturnAbi
fn clone(&self) -> LeanExportReturnAbi
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 LeanExportReturnAbi
impl Debug for LeanExportReturnAbi
Source§impl Hash for LeanExportReturnAbi
impl Hash for LeanExportReturnAbi
Source§impl PartialEq for LeanExportReturnAbi
impl PartialEq for LeanExportReturnAbi
Source§fn eq(&self, other: &LeanExportReturnAbi) -> bool
fn eq(&self, other: &LeanExportReturnAbi) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for LeanExportReturnAbi
impl Eq for LeanExportReturnAbi
impl StructuralPartialEq for LeanExportReturnAbi
Auto Trait Implementations§
impl Freeze for LeanExportReturnAbi
impl RefUnwindSafe for LeanExportReturnAbi
impl Send for LeanExportReturnAbi
impl Sync for LeanExportReturnAbi
impl Unpin for LeanExportReturnAbi
impl UnsafeUnpin for LeanExportReturnAbi
impl UnwindSafe for LeanExportReturnAbi
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