pub enum KnownModule {
Show 42 variants
Builtins,
Enum,
Types,
Typeshed,
TypingExtensions,
Typing,
Sys,
Os,
Tempfile,
Pathlib,
Datetime,
Decimal,
Ipaddress,
Re,
Abc,
Dataclasses,
Functools,
Collections,
CollectionsAbc,
CollectionsAbcInternal,
Inspect,
Templatelib,
TypeCheckerInternals,
TyExtensions,
TyExtensionsInternal,
TyExtensionsPydantic,
ImportLib,
UnittestMock,
Uuid,
Warnings,
Numbers,
Struct,
PydanticConfig,
PydanticFields,
PydanticFunctionalValidators,
PydanticMain,
PydanticRootModel,
PydanticSettingsMain,
PydanticTypes,
Pytest,
PytestFixtures,
PytestMarkStructures,
}Expand description
Enumeration of modules in which types with dedicated semantic behavior are located.
Variants§
Builtins
Enum
Types
Typeshed
TypingExtensions
Typing
Sys
Os
Tempfile
Pathlib
Datetime
Decimal
Ipaddress
Re
Abc
Dataclasses
Functools
Collections
CollectionsAbc
CollectionsAbcInternal
Inspect
Templatelib
TypeCheckerInternals
TyExtensions
TyExtensionsInternal
TyExtensionsPydantic
ImportLib
UnittestMock
Uuid
Warnings
Numbers
Struct
PydanticConfig
PydanticFields
PydanticFunctionalValidators
PydanticMain
PydanticRootModel
PydanticSettingsMain
PydanticTypes
Pytest
PytestFixtures
PytestMarkStructures
Implementations§
Source§impl KnownModule
impl KnownModule
pub const fn as_str(self) -> &'static str
pub fn name(self) -> ModuleName
Sourcepub const fn is_third_party(self) -> bool
pub const fn is_third_party(self) -> bool
Return true if this module is provided by a supported third-party package.
pub const fn is_builtins(self) -> bool
pub const fn is_typing(self) -> bool
pub const fn is_typing_extensions(self) -> bool
pub const fn is_ty_extensions(self) -> bool
pub const fn is_ty_extensions_internal(self) -> bool
pub const fn is_inspect(self) -> bool
pub const fn is_importlib(self) -> bool
pub const fn is_functools(self) -> bool
pub const fn is_dataclasses(self) -> bool
Trait Implementations§
Source§impl Clone for KnownModule
impl Clone for KnownModule
Source§fn clone(&self) -> KnownModule
fn clone(&self) -> KnownModule
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for KnownModule
Source§impl Debug for KnownModule
impl Debug for KnownModule
Source§impl Display for KnownModule
impl Display for KnownModule
impl Eq for KnownModule
Source§impl FromStr for KnownModule
impl FromStr for KnownModule
Source§impl GetSize for KnownModule
impl GetSize for KnownModule
Source§fn get_heap_size(&self) -> usize
fn get_heap_size(&self) -> usize
Determines how many bytes this object occupies inside the heap. Read more
Source§fn get_heap_size_with_tracker<TRACKER: GetSizeTracker>(
&self,
tracker: TRACKER,
) -> (usize, TRACKER)
fn get_heap_size_with_tracker<TRACKER: GetSizeTracker>( &self, tracker: TRACKER, ) -> (usize, TRACKER)
Determines how many bytes this object occupies inside the heap while using a
tracker. Read moreSource§fn get_stack_size() -> usize
fn get_stack_size() -> usize
Determines how may bytes this object occupies inside the stack. Read more
Source§fn get_size_with_tracker<T>(&self, tracker: T) -> (usize, T)where
T: GetSizeTracker,
fn get_size_with_tracker<T>(&self, tracker: T) -> (usize, T)where
T: GetSizeTracker,
Determines the total size of the object while using a
tracker. Read moreSource§impl Hash for KnownModule
impl Hash for KnownModule
Source§impl PartialEq for KnownModule
impl PartialEq for KnownModule
impl StructuralPartialEq for KnownModule
Auto Trait Implementations§
impl Freeze for KnownModule
impl RefUnwindSafe for KnownModule
impl Send for KnownModule
impl Sync for KnownModule
impl Unpin for KnownModule
impl UnsafeUnpin for KnownModule
impl UnwindSafe for KnownModule
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> HashEqLike<&T> for T
impl<T> HashEqLike<&T> for T
Source§impl<T> HashEqLike<Cow<'_, T>> for T
impl<T> HashEqLike<Cow<'_, T>> for T
Source§impl<T> HashEqLike<T> for T
impl<T> HashEqLike<T> for T
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> IntoDiagnosticMessage for Twhere
T: Display,
impl<T> IntoDiagnosticMessage for Twhere
T: Display,
fn into_diagnostic_message(self) -> DiagnosticMessage
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 moreSource§impl<T> ToCharString for Twhere
T: Display,
impl<T> ToCharString for Twhere
T: Display,
Source§fn try_to_char_string(&self) -> Result<CharString, ToCharStringError>
fn try_to_char_string(&self) -> Result<CharString, ToCharStringError>
Attempts to convert the value to a
CharString. Read moreSource§fn to_char_string(&self) -> CharString
fn to_char_string(&self) -> CharString
Converts the value to a
CharString. Read moreSource§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more