pub struct RustClassDef {
pub item_struct: ItemStruct,
pub item_impl: Option<ItemImpl>,
}
Fields§
§item_struct: ItemStruct
§item_impl: Option<ItemImpl>
Implementations§
Source§impl RustClassDef
impl RustClassDef
pub fn class(&self) -> Class
pub fn is_public(&self) -> bool
pub fn struct_attrs(&self) -> Vec<Attribute>
pub fn impl_attrs(&self) -> Vec<Attribute>
pub fn parents(&self) -> Vec<Class> ⓘ
pub fn functions(&self) -> Vec<Fn> ⓘ
pub fn function_impls(&self) -> Vec<(Fn, ImplItemMethod)>
pub fn variables(&self) -> Vec<Var> ⓘ
pub fn variables_impl(&self) -> Vec<(Var, Field)>
Trait Implementations§
Source§impl Debug for RustClassDef
impl Debug for RustClassDef
Source§impl Parse for RustClassDef
impl Parse for RustClassDef
fn parse(input: ParseStream<'_>) -> Result<Self>
Source§impl PartialEq for RustClassDef
impl PartialEq for RustClassDef
impl StructuralPartialEq for RustClassDef
Auto Trait Implementations§
impl Freeze for RustClassDef
impl RefUnwindSafe for RustClassDef
impl !Send for RustClassDef
impl !Sync for RustClassDef
impl Unpin for RustClassDef
impl UnwindSafe for RustClassDef
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