pub enum ModuleDirective {
Requires {
requires_span: Span,
modifiers: Vec<RequiresModifier>,
module: Path,
semi_span: Span,
},
Exports {
exports_span: Span,
pkg: Path,
to_modules: Option<(Span, Vec<Path>)>,
semi_span: Span,
},
Opens {
opens_span: Span,
pkg: Path,
to_modules: Option<(Span, Vec<Path>)>,
semi_span: Span,
},
Uses {
uses_span: Span,
ty: Type,
semi_span: Span,
},
Provides {
provides_span: Span,
ty: Type,
with_span: Span,
impls: Vec<Type>,
semi_span: Span,
},
}Expand description
A module directive.
Variants§
Trait Implementations§
Source§impl Clone for ModuleDirective
impl Clone for ModuleDirective
Source§fn clone(&self) -> ModuleDirective
fn clone(&self) -> ModuleDirective
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 ModuleDirective
impl Debug for ModuleDirective
impl Eq for ModuleDirective
Source§impl Hash for ModuleDirective
impl Hash for ModuleDirective
Source§impl PartialEq for ModuleDirective
impl PartialEq for ModuleDirective
Source§fn eq(&self, other: &ModuleDirective) -> bool
fn eq(&self, other: &ModuleDirective) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ModuleDirective
Auto Trait Implementations§
impl Freeze for ModuleDirective
impl RefUnwindSafe for ModuleDirective
impl Send for ModuleDirective
impl Sync for ModuleDirective
impl Unpin for ModuleDirective
impl UnsafeUnpin for ModuleDirective
impl UnwindSafe for ModuleDirective
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