pub struct Class {Show 14 fields
pub id: NodeId,
pub name: Name,
pub pos: Position,
pub span: Span,
pub parent_class: Option<ParentClass>,
pub has_open: bool,
pub is_abstract: bool,
pub internal: bool,
pub has_constructor: bool,
pub constructor: Option<Function>,
pub fields: Vec<Field>,
pub methods: Vec<Function>,
pub initializers: Vec<Box<Stmt>>,
pub type_params: Option<Vec<TypeParam>>,
}
Fields§
§id: NodeId
§name: Name
§pos: Position
§span: Span
§parent_class: Option<ParentClass>
§has_open: bool
§is_abstract: bool
§internal: bool
§has_constructor: bool
§constructor: Option<Function>
§fields: Vec<Field>
§methods: Vec<Function>
§initializers: Vec<Box<Stmt>>
§type_params: Option<Vec<TypeParam>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Class
impl RefUnwindSafe for Class
impl Send for Class
impl Sync for Class
impl Unpin for Class
impl UnwindSafe for Class
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)