struct PathDefinitionKinds {
modules: bool,
bang_macros: bool,
attr_macros: bool,
value_namespace: bool,
type_namespace: bool,
records: bool,
tuple_structs: bool,
structs_and_consts: bool,
}Fields§
§modules: bool§bang_macros: bool§attr_macros: bool§value_namespace: bool§type_namespace: bool§records: boolUnions, record structs and record enum variants. Note that unions and structs
can also be enabled by type_namespace (either works).
tuple_structs: boolTuple structs and tuple enum variants. Both are also controlled by value_namespace
(either works). Structs are also covered by type_namespace.
structs_and_consts: boolStructs, enum variants and consts.
Implementations§
Source§impl PathDefinitionKinds
impl PathDefinitionKinds
const ALL_DISABLED: Self
const ALL_ENABLED: Self
const PATH_PAT_KINDS: PathDefinitionKinds
fn deduce_from_path(path: &Path, exact: bool) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PathDefinitionKinds
impl RefUnwindSafe for PathDefinitionKinds
impl Send for PathDefinitionKinds
impl Sync for PathDefinitionKinds
impl Unpin for PathDefinitionKinds
impl UnsafeUnpin for PathDefinitionKinds
impl UnwindSafe for PathDefinitionKinds
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
§impl<T, R> CollectAndApply<T, R> for T
impl<T, R> CollectAndApply<T, R> for T
§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> ⓘ
Converts
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> ⓘ
Converts
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