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§fn clone(&self) -> UsedFeatures
fn clone(&self) -> UsedFeatures
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UsedFeatures
impl Debug for UsedFeatures
Source§impl Default for UsedFeatures
impl Default for UsedFeatures
Source§fn default() -> UsedFeatures
fn default() -> UsedFeatures
Returns the “default value” for a type. Read more
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