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(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moresource§impl Parser for TranslationOptions
impl Parser for TranslationOptions
source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for TranslationOptions
impl RefUnwindSafe for TranslationOptions
impl Send for TranslationOptions
impl Sync for TranslationOptions
impl Unpin for TranslationOptions
impl UnwindSafe for TranslationOptions
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
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§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