pub struct ModuleSurface {
pub record: Ty,
pub types: Vec<TypeDecl>,
pub prefix: Option<String>,
}Expand description
One dependency module’s public surface, as a dependent sees it.
Fields§
§record: TyThe module’s functions keyed by bare name.
types: Vec<TypeDecl>Every type declaration the record can mention: the package’s own and its dependencies’ (transitively), dependencies first.
prefix: Option<String>The module’s canonical mangle prefix, or None for a legacy head whose
declarations carry no prefixes (its types are then bare-named and are
registered under the importer’s alias).
Trait Implementations§
Source§impl Clone for ModuleSurface
impl Clone for ModuleSurface
Auto Trait Implementations§
impl Freeze for ModuleSurface
impl RefUnwindSafe for ModuleSurface
impl Send for ModuleSurface
impl Sync for ModuleSurface
impl Unpin for ModuleSurface
impl UnsafeUnpin for ModuleSurface
impl UnwindSafe for ModuleSurface
Blanket Implementations§
impl<T> Allocation for T
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