pub struct AndOperation<'c> { /* private fields */ }
Expand description
An and
operation. Index bitwise and.
The index.and
operation takes two index values and computes their bitwise
and.
Example:
// c = a & b
%c = index.and %a, %b
Implementations§
source§impl<'c> AndOperation<'c>
impl<'c> AndOperation<'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>
) -> AndOperationBuilder<'c, Unset, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> AndOperationBuilder<'c, Unset, Unset, Unset>
Creates a builder.
pub fn result(&self) -> Result<OperationResult<'c, '_>, Error>
pub fn lhs(&self) -> Result<Value<'c, '_>, Error>
pub fn rhs(&self) -> Result<Value<'c, '_>, Error>
Trait Implementations§
source§impl<'c> From<AndOperation<'c>> for Operation<'c>
impl<'c> From<AndOperation<'c>> for Operation<'c>
source§fn from(operation: AndOperation<'c>) -> Self
fn from(operation: AndOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for AndOperation<'c>
impl<'c> !Send for AndOperation<'c>
impl<'c> !Sync for AndOperation<'c>
impl<'c> Unpin for AndOperation<'c>
impl<'c> UnwindSafe for AndOperation<'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