pub struct Interface {
pub id: Option<String>,
pub uses: IndexMap<String, UsedType>,
pub exports: IndexMap<String, ItemKind>,
}
Expand description
Represents an interface (i.e. instance type).
Fields§
§id: Option<String>
The identifier of the interface.
This may be None
for inline interfaces.
uses: IndexMap<String, UsedType>
A map of exported name to information about the used type.
exports: IndexMap<String, ItemKind>
The exported items of the interface.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Interface
impl RefUnwindSafe for Interface
impl Send for Interface
impl Sync for Interface
impl Unpin for Interface
impl UnwindSafe for Interface
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