pub struct ProfileRequest { /* private fields */ }Expand description
The explicit active-profile input for one selection operation.
Implementations§
Source§impl ProfileRequest
impl ProfileRequest
Sourcepub fn activate(&mut self, profile: impl Into<String>) -> bool
pub fn activate(&mut self, profile: impl Into<String>) -> bool
Adds one active profile and reports whether it was newly inserted.
Sourcepub fn with_profile(self, profile: impl Into<String>) -> Self
pub fn with_profile(self, profile: impl Into<String>) -> Self
Adds one active profile using builder syntax.
Sourcepub fn active(&self) -> impl Iterator<Item = &str>
pub fn active(&self) -> impl Iterator<Item = &str>
Returns explicitly active profiles in deterministic order.
Sourcepub const fn activates_all(&self) -> bool
pub const fn activates_all(&self) -> bool
Reports whether all declared profiles are active.
Trait Implementations§
Source§impl Clone for ProfileRequest
impl Clone for ProfileRequest
Source§fn clone(&self) -> ProfileRequest
fn clone(&self) -> ProfileRequest
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 ProfileRequest
impl Debug for ProfileRequest
Source§impl Default for ProfileRequest
impl Default for ProfileRequest
Source§fn default() -> ProfileRequest
fn default() -> ProfileRequest
Returns the “default value” for a type. Read more
impl Eq for ProfileRequest
Source§impl PartialEq for ProfileRequest
impl PartialEq for ProfileRequest
impl StructuralPartialEq for ProfileRequest
Auto Trait Implementations§
impl Freeze for ProfileRequest
impl RefUnwindSafe for ProfileRequest
impl Send for ProfileRequest
impl Sync for ProfileRequest
impl Unpin for ProfileRequest
impl UnsafeUnpin for ProfileRequest
impl UnwindSafe for ProfileRequest
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