pub enum Strip {
Resolved(StripInner),
Deferred(StripInner),
}
Expand description
The setting for choosing which symbols to strip.
This is semantically a StripInner
, and should be used as so via the
Strip::into_inner
method for all intents and purposes.
Internally, it’s used to model a strip option whose value can be deferred for optimization purposes: when no package being compiled requires debuginfo, then we can strip debuginfo to remove pre-existing debug symbols from the standard library.
Variants§
Resolved(StripInner)
A strip option that is fixed and will not change.
Deferred(StripInner)
A strip option that might be overridden by Cargo for optimization purposes.
Implementations§
source§impl Strip
impl Strip
sourcepub fn into_inner(self) -> StripInner
pub fn into_inner(self) -> StripInner
The main way to interact with this strip option, turning it into a StripInner
.
pub(crate) fn is_deferred(&self) -> bool
sourcepub(crate) fn strip_debuginfo(self) -> Self
pub(crate) fn strip_debuginfo(self) -> Self
Reset to stripping debuginfo.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Strip
impl<'de> Deserialize<'de> for Strip
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl Ord for Strip
impl Ord for Strip
source§impl PartialOrd for Strip
impl PartialOrd for Strip
impl Copy for Strip
impl Eq for Strip
Auto Trait Implementations§
impl Freeze for Strip
impl RefUnwindSafe for Strip
impl Send for Strip
impl Sync for Strip
impl Unpin for Strip
impl UnwindSafe for Strip
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
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)
clone_to_uninit
)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>
fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 24 bytes
Size for each variant:
Resolved
: 16 bytesDeferred
: 16 bytes