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