pub struct ModuleAttribute {
pub name_index: u16,
pub flags: u16,
pub version_index: u16,
pub requires: Vec<ModuleRequire>,
pub exports: Vec<ModuleExport>,
pub opens: Vec<ModuleExport>,
pub uses: Vec<u16>,
pub provides: Vec<ModuleProvide>,
}Expand description
The complete structural Module payload.
Fields§
§name_index: u16Module constant index.
flags: u16Raw module flags.
version_index: u16Module version string index, or zero.
requires: Vec<ModuleRequire>Required modules in declaration order.
exports: Vec<ModuleExport>Export directives in declaration order.
opens: Vec<ModuleExport>Open directives in declaration order.
uses: Vec<u16>Used service class indices in declaration order.
provides: Vec<ModuleProvide>Service provider directives in declaration order.
Implementations§
Source§impl ModuleAttribute
impl ModuleAttribute
Sourcepub fn decode(reader: &mut ByteReader<'_>) -> Result<Self, AttributeError>
pub fn decode(reader: &mut ByteReader<'_>) -> Result<Self, AttributeError>
Decode all module directives without resolving or interpreting them.
Trait Implementations§
Source§impl Clone for ModuleAttribute
impl Clone for ModuleAttribute
Source§fn clone(&self) -> ModuleAttribute
fn clone(&self) -> ModuleAttribute
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ModuleAttribute
impl Debug for ModuleAttribute
impl Eq for ModuleAttribute
Source§impl PartialEq for ModuleAttribute
impl PartialEq for ModuleAttribute
impl StructuralPartialEq for ModuleAttribute
Auto Trait Implementations§
impl Freeze for ModuleAttribute
impl RefUnwindSafe for ModuleAttribute
impl Send for ModuleAttribute
impl Sync for ModuleAttribute
impl Unpin for ModuleAttribute
impl UnsafeUnpin for ModuleAttribute
impl UnwindSafe for ModuleAttribute
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