[−][src]Struct intercom_common::model::ComInterface
Methods
impl ComInterface[src]
pub fn parse(
crate_name: &str,
attr_params: TokenStream,
item: &str
) -> ParseResult<ComInterface>[src]
crate_name: &str,
attr_params: TokenStream,
item: &str
) -> ParseResult<ComInterface>
Parses a #[com_interface] attribute and the associated item.
pub fn from_ast(
crate_name: &str,
attr: TokenStream,
item: &Item
) -> ParseResult<ComInterface>[src]
crate_name: &str,
attr: TokenStream,
item: &Item
) -> ParseResult<ComInterface>
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]
fn eq(&self, other: &ComInterface) -> bool[src]
fn ne(&self, other: &ComInterface) -> bool[src]
impl Debug for ComInterface[src]
Auto Trait Implementations
impl !Send for ComInterface
impl !Sync for ComInterface
impl Unpin for ComInterface
impl !UnwindSafe for ComInterface
impl !RefUnwindSafe for ComInterface
Blanket Implementations
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,