oa::OpEffect

Logical value effects of an operation.

StRust public API

Declaration

pub struct OpEffect(/* private fields */);
Public Rust declaration.

Public Methods

pub const fn bits(&self) -> u8
pub const fn is_empty(&self) -> bool
pub const fn is_all(&self) -> bool
pub const fn intersects(&self, other: Self) -> bool
pub const fn contains(&self, other: Self) -> bool
pub fn insert(&mut self, other: Self)
pub fn remove(&mut self, other: Self)
pub fn toggle(&mut self, other: Self)
pub fn set(&mut self, other: Self, value: bool)
pub const fn intersection(self, other: Self) -> Self
pub const fn union(self, other: Self) -> Self
pub const fn difference(self, other: Self) -> Self
pub const fn symmetric_difference(self, other: Self) -> Self
pub const fn complement(self) -> Self
pub const fn iter(&self) -> Iter<OpEffect>
pub const fn iter_names(&self) -> IterNames<OpEffect>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
fn bitand(self, other: Self) -> Self
fn bitand_assign(&mut self, other: Self)
fn bitor(self, other: OpEffect) -> Self
fn bitor_assign(&mut self, other: Self)
fn bitxor(self, other: Self) -> Self
fn bitxor_assign(&mut self, other: Self)
fn clone(&self) -> OpEffect
fn fmt(&self, f: &mut Formatter<'_>) -> Result
fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)
fn bits(&self) -> u8
fn into_iter(self) -> Self::IntoIter
fn fmt(&self, f: &mut Formatter<'_>) -> Result
fn not(self) -> Self
fn fmt(&self, f: &mut Formatter<'_>) -> Result
fn eq(&self, other: &OpEffect) -> bool
fn sub(self, other: Self) -> Self
fn sub_assign(&mut self, other: Self)
fn fmt(&self, f: &mut Formatter<'_>) -> Result

Associated Functions

pub const fn empty() -> Self
pub const fn all() -> Self
pub const fn from_bits(bits: u8) -> Option<Self>
pub const fn from_bits_truncate(bits: u8) -> Self
pub const fn from_bits_retain(bits: u8) -> Self
pub fn from_name(name: &str) -> Option<Self>
fn default() -> OpEffect
fn from_bits_retain(bits: u8) -> OpEffect
fn all_named() -> OpEffect
fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self

Public Method Documentation

pub const fn bits( &self ) -> u8
No public source comment is attached to this declaration.
pub const fn is_empty( &self ) -> bool
No public source comment is attached to this declaration.
pub const fn is_all( &self ) -> bool
No public source comment is attached to this declaration.
pub const fn intersects( &self, other: Self ) -> bool
No public source comment is attached to this declaration.
pub const fn contains( &self, other: Self ) -> bool
No public source comment is attached to this declaration.
pub fn insert( &mut self, other: Self )
No public source comment is attached to this declaration.
pub fn remove( &mut self, other: Self )
No public source comment is attached to this declaration.
pub fn toggle( &mut self, other: Self )
No public source comment is attached to this declaration.
pub fn set( &mut self, other: Self, value: bool )
No public source comment is attached to this declaration.
pub const fn intersection( self, other: Self ) -> Self
No public source comment is attached to this declaration.
pub const fn union( self, other: Self ) -> Self
No public source comment is attached to this declaration.
pub const fn difference( self, other: Self ) -> Self
No public source comment is attached to this declaration.
pub const fn symmetric_difference( self, other: Self ) -> Self
No public source comment is attached to this declaration.
pub const fn complement( self ) -> Self
No public source comment is attached to this declaration.
pub const fn iter( &self ) -> Iter<OpEffect>
No public source comment is attached to this declaration.
pub const fn iter_names( &self ) -> IterNames<OpEffect>
No public source comment is attached to this declaration.
fn fmt( &self, f: &mut Formatter<'_> ) -> Result
No public source comment is attached to this declaration.
fn bitand( self, other: Self ) -> Self
No public source comment is attached to this declaration.
fn bitand_assign( &mut self, other: Self )
No public source comment is attached to this declaration.
fn bitor( self, other: OpEffect ) -> Self
No public source comment is attached to this declaration.
fn bitor_assign( &mut self, other: Self )
No public source comment is attached to this declaration.
fn bitxor( self, other: Self ) -> Self
No public source comment is attached to this declaration.
fn bitxor_assign( &mut self, other: Self )
No public source comment is attached to this declaration.
fn clone( &self ) -> OpEffect
No public source comment is attached to this declaration.
fn fmt( &self, f: &mut Formatter<'_> ) -> Result
No public source comment is attached to this declaration.
fn extend<T: IntoIterator<Item = Self>>( &mut self, iterator: T )
No public source comment is attached to this declaration.
fn bits( &self ) -> u8
No public source comment is attached to this declaration.
fn into_iter( self ) -> Self::IntoIter
No public source comment is attached to this declaration.
fn fmt( &self, f: &mut Formatter<'_> ) -> Result
No public source comment is attached to this declaration.
fn not( self ) -> Self
No public source comment is attached to this declaration.
fn fmt( &self, f: &mut Formatter<'_> ) -> Result
No public source comment is attached to this declaration.
fn eq( &self, other: &OpEffect ) -> bool
No public source comment is attached to this declaration.
fn sub( self, other: Self ) -> Self
No public source comment is attached to this declaration.
fn sub_assign( &mut self, other: Self )
No public source comment is attached to this declaration.
fn fmt( &self, f: &mut Formatter<'_> ) -> Result
No public source comment is attached to this declaration.
pub const fn empty() -> Self
No public source comment is attached to this declaration.
pub const fn all() -> Self
No public source comment is attached to this declaration.
pub const fn from_bits( bits: u8 ) -> Option<Self>
No public source comment is attached to this declaration.
pub const fn from_bits_truncate( bits: u8 ) -> Self
No public source comment is attached to this declaration.
pub const fn from_bits_retain( bits: u8 ) -> Self
No public source comment is attached to this declaration.
pub fn from_name( name: &str ) -> Option<Self>
No public source comment is attached to this declaration.
fn default() -> OpEffect
No public source comment is attached to this declaration.
fn from_bits_retain( bits: u8 ) -> OpEffect
No public source comment is attached to this declaration.
fn all_named() -> OpEffect
No public source comment is attached to this declaration.
fn from_iter<T: IntoIterator<Item = Self>>( iterator: T ) -> Self
No public source comment is attached to this declaration.