pub struct Setting<T: Copy> {
pub tag: Tag,
pub value: T,
}
Expand description
Setting combining a tag and a value for features and variations.
Fields§
§tag: Tag
The tag that identifies the setting.
value: T
The value for the setting.
Implementations§
Trait Implementations§
impl<T: Copy + Copy> Copy for Setting<T>
impl<T: Copy + PartialEq> Eq for Setting<T>
Auto Trait Implementations§
impl<T> Freeze for Setting<T>where
T: Freeze,
impl<T> RefUnwindSafe for Setting<T>where
T: RefUnwindSafe,
impl<T> Send for Setting<T>where
T: Send,
impl<T> Sync for Setting<T>where
T: Sync,
impl<T> Unpin for Setting<T>where
T: Unpin,
impl<T> UnwindSafe for Setting<T>where
T: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)