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