#[repr(C)]pub struct SymbolFlags {
pub generic: u8,
pub target: u8,
}
Expand description
Symbol flags.
Fields§
§generic: u8
The generic flags.
target: u8
The target flags.
Implementations§
Source§impl SymbolFlags
impl SymbolFlags
Sourcepub fn set_exported(&mut self)
pub fn set_exported(&mut self)
Set the Exported
flag.
Sourcepub fn with_exported(self) -> Self
pub fn with_exported(self) -> Self
Set the Exported
flag.
Sourcepub fn is_exported(&self) -> bool
pub fn is_exported(&self) -> bool
Returns true
if the Exported
flag is set.
Sourcepub fn set_callable(&mut self)
pub fn set_callable(&mut self)
Set the Callable
flag.
Sourcepub fn is_callable(&self) -> bool
pub fn is_callable(&self) -> bool
Returns true
if the Callable
flag is set.
Sourcepub fn set_materialization_side_effects_only(&mut self)
pub fn set_materialization_side_effects_only(&mut self)
Set the MaterializationSideEffectsOnly
flag.
Sourcepub fn materialization_side_effects_only(self) -> Self
pub fn materialization_side_effects_only(self) -> Self
Set the MaterializationSideEffectsOnly
flag.
Sourcepub fn is_materialization_side_effects_only(&self) -> bool
pub fn is_materialization_side_effects_only(&self) -> bool
Returns true
if the MaterializationSideEffectsOnly
flag is set.
Sourcepub fn set_generic(&mut self, flag: LLVMJITSymbolGenericFlags)
pub fn set_generic(&mut self, flag: LLVMJITSymbolGenericFlags)
Add a generic flag.
Sourcepub fn with_generic(self, flag: LLVMJITSymbolGenericFlags) -> Self
pub fn with_generic(self, flag: LLVMJITSymbolGenericFlags) -> Self
Add a generic flag.
Sourcepub fn set_target(&mut self, flag: LLVMJITSymbolTargetFlags)
pub fn set_target(&mut self, flag: LLVMJITSymbolTargetFlags)
Add a target flag.
Sourcepub fn with_target(self, flag: LLVMJITSymbolTargetFlags) -> Self
pub fn with_target(self, flag: LLVMJITSymbolTargetFlags) -> Self
Add a target flag.
Trait Implementations§
Source§impl Clone for SymbolFlags
impl Clone for SymbolFlags
Source§fn clone(&self) -> SymbolFlags
fn clone(&self) -> SymbolFlags
Returns a copy of the value. Read more
1.0.0 · 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 SymbolFlags
impl Debug for SymbolFlags
Source§impl Hash for SymbolFlags
impl Hash for SymbolFlags
Source§impl PartialEq for SymbolFlags
impl PartialEq for SymbolFlags
impl Copy for SymbolFlags
impl Eq for SymbolFlags
impl StructuralPartialEq for SymbolFlags
Auto Trait Implementations§
impl Freeze for SymbolFlags
impl RefUnwindSafe for SymbolFlags
impl Send for SymbolFlags
impl Sync for SymbolFlags
impl Unpin for SymbolFlags
impl UnwindSafe for SymbolFlags
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 2 bytes