pub struct TranslationOptions {
pub include_namespaces: Vec<InclusionClause>,
}Fields§
§include_namespaces: Vec<InclusionClause>Controls which Rust item should be extracted or not.
This is a space-separated list of patterns prefixed with a modifier, read from the left to the right.
A pattern is a Rust path (say mycrate::mymod::myfn) where
globs are allowed: * matches any name
(e.g. mycrate::mymod::myfn is matched by
mycrate::*::myfn), while ** matches any subpath, empty
included (e.g. mycrate::mymod::myfn is matched by
**::myfn).
By default, hax includes all items. Then, the patterns
prefixed by modifiers are processed from left to right,
excluding or including items. Each pattern selects a number of
item. The modifiers are:
{n}{n} - +: includes the selected items with their
dependencies, transitively (e.g. if function f calls g
which in turn calls h, then +k::f includes f, g and
h)
{n} - +~: includes the selected items with their direct
dependencies only (following the previous example, +~k::f
would select f and g, but not h)
{n} - +!: includes the selected items, without their
dependencies (+!k::f would only select f)
{n} - +:: only includes the type of the selected items (no
dependencies). This includes full struct and enums, but only
the type signature of functions and trait impls (except when
they contain associated types), dropping their bodies.
Trait Implementations§
Source§impl Args for TranslationOptions
impl Args for TranslationOptions
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for TranslationOptions
impl Clone for TranslationOptions
Source§fn clone(&self) -> TranslationOptions
fn clone(&self) -> TranslationOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl CommandFactory for TranslationOptions
impl CommandFactory for TranslationOptions
Source§impl Debug for TranslationOptions
impl Debug for TranslationOptions
Source§impl<'de> Deserialize<'de> for TranslationOptions
impl<'de> Deserialize<'de> for TranslationOptions
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 FromArgMatches for TranslationOptions
impl FromArgMatches for TranslationOptions
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl JsonSchema for TranslationOptions
impl JsonSchema for TranslationOptions
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read more