Enum MemberKind
pub(super) enum MemberKind {
Submodule,
Class {
bases: Vec<String>,
members: Vec<Member>,
},
Enum {
mixin: Option<String>,
members: Vec<(String, String)>,
},
Alias {
target: String,
},
Constant,
Callable {
params: Vec<Param>,
is_method: bool,
},
Property,
}Expand description
The shapes a member can take.
Variants§
Submodule
A nested module (atune.samplers).
Class
A class, with the members the stub must describe.
Fields
Enum
An enum.Enum subclass (atune.TrialState), with its mixin type and its
members’ names and values.
Kept apart from MemberKind::Class because an enum class’s __dict__
is full of the machinery enum puts there (_member_map_,
_value2member_map_, _generate_next_value_, …), none of which is API,
and because what a stub has to say about one is its members, not its
methods.
Fields
Alias
A second public name for a canonical live class, with its fully-qualified target path.
Constant
A module-level constant (atune.__version__).
Callable
A function or method, with its parsed __text_signature__.
Fields
Property
A getter (#[getter] or #[pyo3(get)]).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MemberKind
impl RefUnwindSafe for MemberKind
impl Send for MemberKind
impl Sync for MemberKind
impl Unpin for MemberKind
impl UnsafeUnpin for MemberKind
impl UnwindSafe for MemberKind
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T, U> Imply<T> for U
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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