[][src]Struct intercom_common::model::ComInterface

pub struct ComInterface { /* fields omitted */ }

Methods

impl ComInterface[src]

pub fn parse(
    crate_name: &str,
    attr_params: TokenStream,
    item: &str
) -> ParseResult<ComInterface>
[src]

Parses a #[com_interface] attribute and the associated item.

pub fn from_ast(
    crate_name: &str,
    attr: TokenStream,
    item: &Item
) -> ParseResult<ComInterface>
[src]

Creates ComInterface from AST elements.

pub fn aut(&self) -> &ComInterfaceVariant[src]

Temp accessor for the automation variant.

pub fn name(&self) -> &Ident[src]

Interface name.

pub fn visibility(&self) -> &Visibility[src]

Interface visibility.

pub fn base_interface(&self) -> &Option<Ident>[src]

The base interface.

pub fn variants(&self) -> &OrderMap<ModelTypeSystem, ComInterfaceVariant>[src]

Interface variants.

pub fn item_type(&self) -> InterfaceType[src]

The type of the associated item for the #[com_interface] attribute.

Either an impl or a trait.

pub fn is_unsafe(&self) -> bool[src]

True, if the interface requires unsafe impl.

Trait Implementations

impl PartialEq<ComInterface> for ComInterface[src]

impl Debug for ComInterface[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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