pub struct UsedFeatures { /* private fields */ }Expand description
Tracks which optional crates the generator emitted code for.
Implementations§
Source§impl UsedFeatures
impl UsedFeatures
pub fn insert(&mut self, feature: TypeFeature)
pub fn contains(&self, feature: TypeFeature) -> bool
pub fn iter(&self) -> impl Iterator<Item = &TypeFeature>
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for UsedFeatures
impl Clone for UsedFeatures
Source§impl Debug for UsedFeatures
impl Debug for UsedFeatures
Auto Trait Implementations§
impl Freeze for UsedFeatures
impl RefUnwindSafe for UsedFeatures
impl Send for UsedFeatures
impl Sync for UsedFeatures
impl Unpin for UsedFeatures
impl UnsafeUnpin for UsedFeatures
impl UnwindSafe for UsedFeatures
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