Struct llvm_sys::LLVMAttribute
source · #[repr(C)]pub struct LLVMAttribute { /* private fields */ }
Implementations§
source§impl LLVMAttribute
impl LLVMAttribute
sourcepub fn empty() -> LLVMAttribute
pub fn empty() -> LLVMAttribute
Returns an empty set of flags.
sourcepub fn all() -> LLVMAttribute
pub fn all() -> LLVMAttribute
Returns the set containing all flags.
sourcepub fn from_bits(bits: c_int) -> Option<LLVMAttribute>
pub fn from_bits(bits: c_int) -> Option<LLVMAttribute>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
sourcepub fn from_bits_truncate(bits: c_int) -> LLVMAttribute
pub fn from_bits_truncate(bits: c_int) -> LLVMAttribute
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
sourcepub fn intersects(&self, other: LLVMAttribute) -> bool
pub fn intersects(&self, other: LLVMAttribute) -> bool
Returns true
if there are flags common to both self
and other
.
sourcepub fn contains(&self, other: LLVMAttribute) -> bool
pub fn contains(&self, other: LLVMAttribute) -> bool
Returns true
all of the flags in other
are contained within self
.
sourcepub fn insert(&mut self, other: LLVMAttribute)
pub fn insert(&mut self, other: LLVMAttribute)
Inserts the specified flags in-place.
sourcepub fn remove(&mut self, other: LLVMAttribute)
pub fn remove(&mut self, other: LLVMAttribute)
Removes the specified flags in-place.
sourcepub fn toggle(&mut self, other: LLVMAttribute)
pub fn toggle(&mut self, other: LLVMAttribute)
Toggles the specified flags in-place.
Trait Implementations§
source§impl BitAnd for LLVMAttribute
impl BitAnd for LLVMAttribute
source§fn bitand(self, other: LLVMAttribute) -> LLVMAttribute
fn bitand(self, other: LLVMAttribute) -> LLVMAttribute
Returns the intersection between the two sets of flags.
§type Output = LLVMAttribute
type Output = LLVMAttribute
&
operator.source§impl BitOr for LLVMAttribute
impl BitOr for LLVMAttribute
source§fn bitor(self, other: LLVMAttribute) -> LLVMAttribute
fn bitor(self, other: LLVMAttribute) -> LLVMAttribute
Returns the union of the two sets of flags.
§type Output = LLVMAttribute
type Output = LLVMAttribute
|
operator.source§impl BitXor for LLVMAttribute
impl BitXor for LLVMAttribute
source§fn bitxor(self, other: LLVMAttribute) -> LLVMAttribute
fn bitxor(self, other: LLVMAttribute) -> LLVMAttribute
Returns the left flags, but with all the right flags toggled.
§type Output = LLVMAttribute
type Output = LLVMAttribute
^
operator.source§impl Clone for LLVMAttribute
impl Clone for LLVMAttribute
source§fn clone(&self) -> LLVMAttribute
fn clone(&self) -> LLVMAttribute
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LLVMAttribute
impl Debug for LLVMAttribute
source§impl FromIterator<LLVMAttribute> for LLVMAttribute
impl FromIterator<LLVMAttribute> for LLVMAttribute
source§fn from_iter<T: IntoIterator<Item = LLVMAttribute>>(
iterator: T,
) -> LLVMAttribute
fn from_iter<T: IntoIterator<Item = LLVMAttribute>>( iterator: T, ) -> LLVMAttribute
source§impl Hash for LLVMAttribute
impl Hash for LLVMAttribute
source§impl Not for LLVMAttribute
impl Not for LLVMAttribute
source§fn not(self) -> LLVMAttribute
fn not(self) -> LLVMAttribute
Returns the complement of this set of flags.
§type Output = LLVMAttribute
type Output = LLVMAttribute
!
operator.source§impl Ord for LLVMAttribute
impl Ord for LLVMAttribute
source§fn cmp(&self, other: &LLVMAttribute) -> Ordering
fn cmp(&self, other: &LLVMAttribute) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for LLVMAttribute
impl PartialEq for LLVMAttribute
source§fn eq(&self, other: &LLVMAttribute) -> bool
fn eq(&self, other: &LLVMAttribute) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for LLVMAttribute
impl PartialOrd for LLVMAttribute
source§fn partial_cmp(&self, other: &LLVMAttribute) -> Option<Ordering>
fn partial_cmp(&self, other: &LLVMAttribute) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl Sub for LLVMAttribute
impl Sub for LLVMAttribute
source§fn sub(self, other: LLVMAttribute) -> LLVMAttribute
fn sub(self, other: LLVMAttribute) -> LLVMAttribute
Returns the set difference of the two sets of flags.
§type Output = LLVMAttribute
type Output = LLVMAttribute
-
operator.impl Copy for LLVMAttribute
impl Eq for LLVMAttribute
impl StructuralPartialEq for LLVMAttribute
Auto Trait Implementations§
impl Freeze for LLVMAttribute
impl RefUnwindSafe for LLVMAttribute
impl Send for LLVMAttribute
impl Sync for LLVMAttribute
impl Unpin for LLVMAttribute
impl UnwindSafe for LLVMAttribute
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)