pub(crate) struct CfgInfo {
hidden_cfg: FxHashSet<Cfg>,
current_cfg: Cfg,
auto_cfg_active: bool,
parent_is_doc_cfg: bool,
}
Expand description
This type keeps track of (doc) cfg information as we go down the item tree.
Fields§
List of currently active doc(auto_cfg(hide(...)))
cfgs, minus currently active
doc(auto_cfg(show(...)))
cfgs.
current_cfg: Cfg
Current computed cfg
. Each time we enter a new item, this field is updated as well while
taking into account the hidden_cfg
information.
auto_cfg_active: bool
Whether the doc(auto_cfg())
feature is enabled or not at this point.
parent_is_doc_cfg: bool
If the parent item used doc(cfg(...))
, then we don’t want to overwrite current_cfg
,
instead we will concatenate with it. However, if it’s not the case, we need to overwrite
current_cfg
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CfgInfo
impl RefUnwindSafe for CfgInfo
impl Send for CfgInfo
impl Sync for CfgInfo
impl Unpin for CfgInfo
impl UnwindSafe for CfgInfo
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,
§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>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§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>
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: 72 bytes