Enum ManglingAndAbi
pub enum ManglingAndAbi {
Standard32,
Legacy(LiftLowerAbi),
}Expand description
Combination of Mangling and LiftLowerAbi.
Variants§
Standard32
See Mangling::Standard32.
As of this writing, the standard name mangling only supports the synchronous ABI.
Legacy(LiftLowerAbi)
See Mangling::Legacy and LiftLowerAbi.
Implementations§
§impl ManglingAndAbi
impl ManglingAndAbi
pub fn import_variant(self) -> AbiVariant
pub fn import_variant(self) -> AbiVariant
Get the import AbiVariant corresponding to this ManglingAndAbi
pub fn export_variant(self) -> AbiVariant
pub fn export_variant(self) -> AbiVariant
Get the export AbiVariant corresponding to this ManglingAndAbi
pub fn sync(self) -> ManglingAndAbi
pub fn sync(self) -> ManglingAndAbi
Switch the ABI to be sync if it’s async.
pub fn mangling(&self) -> Mangling
pub fn for_func(&self, func: &Function) -> ManglingAndAbi
pub fn for_func(&self, func: &Function) -> ManglingAndAbi
Returns a suitable ManglingAndAbi, based on self, to use for
func.
This handles the case where func is a synchronous function which means
that it’s forced to use the sync ABI no matter what.
Trait Implementations§
§impl Clone for ManglingAndAbi
impl Clone for ManglingAndAbi
§fn clone(&self) -> ManglingAndAbi
fn clone(&self) -> ManglingAndAbi
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 moreimpl Copy for ManglingAndAbi
§impl Debug for ManglingAndAbi
impl Debug for ManglingAndAbi
impl Eq for ManglingAndAbi
§impl Hash for ManglingAndAbi
impl Hash for ManglingAndAbi
§impl PartialEq for ManglingAndAbi
impl PartialEq for ManglingAndAbi
impl StructuralPartialEq for ManglingAndAbi
Auto Trait Implementations§
impl Freeze for ManglingAndAbi
impl RefUnwindSafe for ManglingAndAbi
impl Send for ManglingAndAbi
impl Sync for ManglingAndAbi
impl Unpin for ManglingAndAbi
impl UnsafeUnpin for ManglingAndAbi
impl UnwindSafe for ManglingAndAbi
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more