pub enum InitStrategy {
ConstructorBody {
class_nodes: &'static [&'static str],
init_names: &'static [&'static str],
init_node_kind: &'static str,
self_keyword: &'static str,
access_kind: &'static str,
obj_field: &'static str,
prop_field: &'static str,
},
StructFields {
struct_nodes: &'static [&'static str],
},
ClassFields {
class_nodes: &'static [&'static str],
},
None,
}Expand description
Strategy for extracting instance attribute types from class definitions.
Variants§
ConstructorBody
Python/TS: scan constructor body for self.attr = param patterns
Fields
StructFields
Rust/Go: extract field types directly from struct declarations
ClassFields
Java/C#: extract field types from typed field declarations in the class body
None
No instance attribute tracking
Auto Trait Implementations§
impl Freeze for InitStrategy
impl RefUnwindSafe for InitStrategy
impl Send for InitStrategy
impl Sync for InitStrategy
impl Unpin for InitStrategy
impl UnsafeUnpin for InitStrategy
impl UnwindSafe for InitStrategy
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> 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