Struct c3_lang_parser::RustClassDef
source · [−]pub struct RustClassDef {
pub item_struct: ItemStruct,
pub item_impl: Option<ItemImpl>,
}Fields
item_struct: ItemStructitem_impl: Option<ItemImpl>Implementations
sourceimpl RustClassDef
impl RustClassDef
pub fn class(&self) -> Class
pub fn is_public(&self) -> bool
pub fn 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
sourceimpl Debug for RustClassDef
impl Debug for RustClassDef
sourceimpl Parse for RustClassDef
impl Parse for RustClassDef
fn parse(input: ParseStream<'_>) -> Result<Self>
sourceimpl PartialEq<RustClassDef> for RustClassDef
impl PartialEq<RustClassDef> for RustClassDef
sourcefn eq(&self, other: &RustClassDef) -> bool
fn eq(&self, other: &RustClassDef) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &RustClassDef) -> bool
fn ne(&self, other: &RustClassDef) -> bool
This method tests for !=.
impl StructuralPartialEq for RustClassDef
Auto Trait Implementations
impl RefUnwindSafe for RustClassDef
impl !Send for RustClassDef
impl !Sync for RustClassDef
impl Unpin for RustClassDef
impl UnwindSafe for RustClassDef
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more