pub struct Module {
pub name: String,
pub flags: Flags,
pub version: Option<String>,
pub requires: Vec<Require>,
pub exports: Vec<Export>,
pub opens: Vec<Open>,
pub uses: Vec<ClassRef>,
pub provides: Vec<Provide>,
}Expand description
A module in the Java Platform Module System (JPMS). See the JVM Specification §4.7.25 for more information.
Fields§
§name: StringThe name of the module.
flags: FlagsThe flags of the module.
version: Option<String>The version of the module.
requires: Vec<Require>A list of the modules that are required by this module.
exports: Vec<Export>A list of the modules that are exported by this module.
opens: Vec<Open>A list of the modules that are opened by this module.
uses: Vec<ClassRef>A list of the classes that are used by this module.
provides: Vec<Provide>A list of the services that are provided by this module.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Module
impl RefUnwindSafe for Module
impl Send for Module
impl Sync for Module
impl Unpin for Module
impl UnsafeUnpin for Module
impl UnwindSafe for Module
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more