pub struct ComInterface {
pub path: Path,
pub ident: Ident,
pub visibility: Visibility,
pub base_interface: Option<Path>,
pub variants: IndexMap<ModelTypeSystem, ComInterfaceVariant>,
pub item_type: InterfaceType,
pub span: Span,
pub is_unsafe: bool,
pub itf_ref: TokenStream,
pub vtable_of: Option<Path>,
pub implemented_by: Option<Path>,
}
Fields§
§path: Path
§ident: Ident
§visibility: Visibility
§base_interface: Option<Path>
§variants: IndexMap<ModelTypeSystem, ComInterfaceVariant>
§item_type: InterfaceType
§span: Span
§is_unsafe: bool
§itf_ref: TokenStream
§vtable_of: Option<Path>
§implemented_by: Option<Path>
Implementations§
Source§impl ComInterface
impl ComInterface
Sourcepub fn from_ast(
crate_name: &str,
attr: TokenStream,
item: TokenStream,
) -> ParseResult<ComInterface>
pub fn from_ast( crate_name: &str, attr: TokenStream, item: TokenStream, ) -> ParseResult<ComInterface>
Creates ComInterface from AST elements.
pub fn vtable(&self, ts: ModelTypeSystem) -> TypePath
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ComInterface
impl !RefUnwindSafe for ComInterface
impl !Send for ComInterface
impl !Sync for ComInterface
impl Unpin for ComInterface
impl !UnwindSafe for ComInterface
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