pub struct HsExtFeatures { /* private fields */ }Expand description
A feature flag set for HsExt capabilities.
Implementations§
Source§impl HsExtFeatures
impl HsExtFeatures
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: &HsExtFeatures) -> HsExtFeatures
pub fn intersection(&self, other: &HsExtFeatures) -> HsExtFeatures
Trait Implementations§
Source§impl Clone for HsExtFeatures
impl Clone for HsExtFeatures
Source§fn clone(&self) -> HsExtFeatures
fn clone(&self) -> HsExtFeatures
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 HsExtFeatures
impl Debug for HsExtFeatures
Source§impl Default for HsExtFeatures
impl Default for HsExtFeatures
Source§fn default() -> HsExtFeatures
fn default() -> HsExtFeatures
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HsExtFeatures
impl RefUnwindSafe for HsExtFeatures
impl Send for HsExtFeatures
impl Sync for HsExtFeatures
impl Unpin for HsExtFeatures
impl UnsafeUnpin for HsExtFeatures
impl UnwindSafe for HsExtFeatures
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