pub enum ExportItem {
Function(FunctionDef),
BuiltinFunction(BuiltinFunctionDecl),
BuiltinType(BuiltinTypeDecl),
TypeAlias(TypeAliasDef),
Named(Vec<ExportSpec>),
Enum(EnumDef),
Struct(StructTypeDef),
Interface(InterfaceDef),
Trait(TraitDef),
Annotation(AnnotationDef),
ForeignFunction(ForeignFunctionDef),
}Variants§
Function(FunctionDef)
pub fn name(…) { … }
BuiltinFunction(BuiltinFunctionDecl)
pub builtin fn name(…) -> ReturnType;
BuiltinType(BuiltinTypeDecl)
pub builtin type Name;
TypeAlias(TypeAliasDef)
pub type Name = Type;
Named(Vec<ExportSpec>)
pub { name1, name2 as alias }
Enum(EnumDef)
pub enum Name { … }
Struct(StructTypeDef)
pub type Name { field: Type, … }
Interface(InterfaceDef)
pub interface Name { … }
Trait(TraitDef)
pub trait Name { … }
Annotation(AnnotationDef)
pub annotation name(…) { … }
ForeignFunction(ForeignFunctionDef)
pub fn python name(…) { … }
Trait Implementations§
Source§impl Clone for ExportItem
impl Clone for ExportItem
Source§fn clone(&self) -> ExportItem
fn clone(&self) -> ExportItem
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExportItem
impl Debug for ExportItem
Source§impl<'de> Deserialize<'de> for ExportItem
impl<'de> Deserialize<'de> for ExportItem
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ExportItem
impl RefUnwindSafe for ExportItem
impl Send for ExportItem
impl Sync for ExportItem
impl Unpin for ExportItem
impl UnsafeUnpin for ExportItem
impl UnwindSafe for ExportItem
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