[][src]Struct com_macros_support::Class

pub struct Class {
    pub name: Ident,
    pub has_class_factory: bool,
    pub docs: Vec<Attribute>,
    pub visibility: Visibility,
    pub interfaces: Vec<Interface>,
    pub methods: HashMap<Path, Vec<ImplItemMethod>>,
    pub fields: Vec<Field>,
    pub impl_debug: bool,
}

Fields

name: Identhas_class_factory: booldocs: Vec<Attribute>visibility: Visibilityinterfaces: Vec<Interface>methods: HashMap<Path, Vec<ImplItemMethod>>fields: Vec<Field>impl_debug: bool

Implementations

impl Class[src]

pub fn to_tokens(&self) -> TokenStream[src]

pub fn to_struct_tokens(&self) -> TokenStream[src]

The COM class object struct and impl

Structure of the object:

pub struct ClassName {
    // ..interface vpointers..
    // ..ref count..
    // ..user defined fields..
}

pub fn to_class_trait_impl_tokens(&self) -> TokenStream[src]

Trait Implementations

impl Debug for Class[src]

impl Parse for Class[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.