pub struct AtomicCmpXchgOperation<'c> { /* private fields */ }
Expand description
A cmpxchg
operation.
Implementations§
source§impl<'c> AtomicCmpXchgOperation<'c>
impl<'c> AtomicCmpXchgOperation<'c>
sourcepub fn as_operation(&self) -> &Operation<'c>
pub fn as_operation(&self) -> &Operation<'c>
Returns a generic operation.
sourcepub fn builder(
context: &'c Context,
location: Location<'c>
) -> AtomicCmpXchgOperationBuilder<'c, Unset, Unset, Unset, Unset, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> AtomicCmpXchgOperationBuilder<'c, Unset, Unset, Unset, Unset, Unset, Unset>
Creates a builder.
pub fn res(&self) -> Result<OperationResult<'c, '_>, Error>
pub fn ptr(&self) -> Result<Value<'c, '_>, Error>
pub fn cmp(&self) -> Result<Value<'c, '_>, Error>
pub fn val(&self) -> Result<Value<'c, '_>, Error>
pub fn success_ordering(&self) -> Result<Attribute<'c>, Error>
pub fn set_success_ordering(&mut self, value: Attribute<'c>)
pub fn failure_ordering(&self) -> Result<Attribute<'c>, Error>
pub fn set_failure_ordering(&mut self, value: Attribute<'c>)
pub fn syncscope(&self) -> Result<StringAttribute<'c>, Error>
pub fn set_syncscope(&mut self, value: StringAttribute<'c>)
pub fn remove_syncscope(&mut self) -> Result<(), Error>
pub fn alignment(&self) -> Result<IntegerAttribute<'c>, Error>
pub fn set_alignment(&mut self, value: IntegerAttribute<'c>)
pub fn remove_alignment(&mut self) -> Result<(), Error>
pub fn weak(&self) -> Result<Attribute<'c>, Error>
pub fn set_weak(&mut self, value: Attribute<'c>)
pub fn remove_weak(&mut self) -> Result<(), Error>
pub fn volatile(&self) -> Result<Attribute<'c>, Error>
pub fn set_volatile(&mut self, value: Attribute<'c>)
pub fn remove_volatile(&mut self) -> Result<(), Error>
pub fn access_groups(&self) -> Result<ArrayAttribute<'c>, Error>
pub fn set_access_groups(&mut self, value: ArrayAttribute<'c>)
pub fn remove_access_groups(&mut self) -> Result<(), Error>
pub fn alias_scopes(&self) -> Result<ArrayAttribute<'c>, Error>
pub fn set_alias_scopes(&mut self, value: ArrayAttribute<'c>)
pub fn remove_alias_scopes(&mut self) -> Result<(), Error>
pub fn noalias_scopes(&self) -> Result<ArrayAttribute<'c>, Error>
pub fn set_noalias_scopes(&mut self, value: ArrayAttribute<'c>)
pub fn remove_noalias_scopes(&mut self) -> Result<(), Error>
pub fn tbaa(&self) -> Result<ArrayAttribute<'c>, Error>
pub fn set_tbaa(&mut self, value: ArrayAttribute<'c>)
pub fn remove_tbaa(&mut self) -> Result<(), Error>
Trait Implementations§
source§impl<'c> From<AtomicCmpXchgOperation<'c>> for Operation<'c>
impl<'c> From<AtomicCmpXchgOperation<'c>> for Operation<'c>
source§fn from(operation: AtomicCmpXchgOperation<'c>) -> Self
fn from(operation: AtomicCmpXchgOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for AtomicCmpXchgOperation<'c>
impl<'c> !Send for AtomicCmpXchgOperation<'c>
impl<'c> !Sync for AtomicCmpXchgOperation<'c>
impl<'c> Unpin for AtomicCmpXchgOperation<'c>
impl<'c> UnwindSafe for AtomicCmpXchgOperation<'c>
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