pub struct OParFeatures { /* private fields */ }Expand description
A feature flag set for OPar capabilities.
Implementations§
Source§impl OParFeatures
impl OParFeatures
pub fn new() -> Self
pub fn enable(&mut self, flag: impl Into<String>)
pub fn disable(&mut self, flag: &str)
pub fn is_enabled(&self, flag: &str) -> bool
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn union(&self, other: &OParFeatures) -> OParFeatures
pub fn intersection(&self, other: &OParFeatures) -> OParFeatures
Trait Implementations§
Source§impl Clone for OParFeatures
impl Clone for OParFeatures
Source§fn clone(&self) -> OParFeatures
fn clone(&self) -> OParFeatures
Returns a duplicate 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 OParFeatures
impl Debug for OParFeatures
Source§impl Default for OParFeatures
impl Default for OParFeatures
Source§fn default() -> OParFeatures
fn default() -> OParFeatures
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OParFeatures
impl RefUnwindSafe for OParFeatures
impl Send for OParFeatures
impl Sync for OParFeatures
impl Unpin for OParFeatures
impl UnsafeUnpin for OParFeatures
impl UnwindSafe for OParFeatures
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