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