pub struct ParseExpandConfig {
pub crates: Vec<String>,
pub all_features: bool,
pub default_features: bool,
pub features: Option<Vec<String>>,
pub profile: Profile,
}
Expand description
Settings to apply when running rustc -Zunpretty=expanded
Fields§
§crates: Vec<String>
The names of crates to parse with rustc -Zunpretty=expanded
all_features: bool
Whether to enable all the features when expanding.
default_features: bool
Whether to use the default feature set when expanding.
features: Option<Vec<String>>
List of features to use when expanding. Combines with default_features
like in
Cargo.toml
.
profile: Profile
Controls whether or not to pass --release
when expanding.
Trait Implementations§
Source§impl Clone for ParseExpandConfig
impl Clone for ParseExpandConfig
Source§fn clone(&self) -> ParseExpandConfig
fn clone(&self) -> ParseExpandConfig
Returns a copy of the value. Read more
1.0.0 · 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 ParseExpandConfig
impl Debug for ParseExpandConfig
Source§impl Default for ParseExpandConfig
impl Default for ParseExpandConfig
Source§fn default() -> ParseExpandConfig
fn default() -> ParseExpandConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ParseExpandConfigwhere
ParseExpandConfig: Default,
impl<'de> Deserialize<'de> for ParseExpandConfigwhere
ParseExpandConfig: Default,
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ParseExpandConfig
impl RefUnwindSafe for ParseExpandConfig
impl Send for ParseExpandConfig
impl Sync for ParseExpandConfig
impl Unpin for ParseExpandConfig
impl UnwindSafe for ParseExpandConfig
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