pub enum BuiltinProfile {
Dev,
Release,
}Expand description
One of the two profiles Cabin always provides without any manifest declaration.
Variants§
Implementations§
Source§impl BuiltinProfile
impl BuiltinProfile
Sourcepub fn all() -> [BuiltinProfile; 2]
pub fn all() -> [BuiltinProfile; 2]
Iterate over every built-in in a stable order.
Sourcepub fn as_str(self) -> &'static str
pub fn as_str(self) -> &'static str
Public name as it appears in [profile.<name>] and on the
CLI.
Sourcepub fn defaults(self) -> ProfileDefaults
pub fn defaults(self) -> ProfileDefaults
Default field values for this built-in.
Trait Implementations§
Source§impl Clone for BuiltinProfile
impl Clone for BuiltinProfile
Source§fn clone(&self) -> BuiltinProfile
fn clone(&self) -> BuiltinProfile
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 BuiltinProfile
impl Debug for BuiltinProfile
Source§impl Display for BuiltinProfile
impl Display for BuiltinProfile
Source§impl Hash for BuiltinProfile
impl Hash for BuiltinProfile
Source§impl Ord for BuiltinProfile
impl Ord for BuiltinProfile
Source§fn cmp(&self, other: &BuiltinProfile) -> Ordering
fn cmp(&self, other: &BuiltinProfile) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for BuiltinProfile
impl PartialEq for BuiltinProfile
Source§fn eq(&self, other: &BuiltinProfile) -> bool
fn eq(&self, other: &BuiltinProfile) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for BuiltinProfile
impl PartialOrd for BuiltinProfile
impl Copy for BuiltinProfile
impl Eq for BuiltinProfile
impl StructuralPartialEq for BuiltinProfile
Auto Trait Implementations§
impl Freeze for BuiltinProfile
impl RefUnwindSafe for BuiltinProfile
impl Send for BuiltinProfile
impl Sync for BuiltinProfile
impl Unpin for BuiltinProfile
impl UnsafeUnpin for BuiltinProfile
impl UnwindSafe for BuiltinProfile
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§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.