[][src]Struct jimage::File

pub struct File { /* fields omitted */ }

A loaded jimage file such as jdk-13.0.1.9-hotspot/lib/modules

Methods

impl File[src]

pub fn open(api: &Library, path: impl AsRef<Path>) -> Result<Self>[src]

Open a jimage-format file such as jdk-13.0.1.9-hotspot/lib/modules

pub fn package_to_module<'s>(&'s self, package_name: &CStr) -> Result<&'s CStr>[src]

Map a package ("java/lang") to a module ("java.base")

pub fn find_resource<'s>(
    &'s self,
    module_name: &CStr,
    version: &CStr,
    name: &CStr
) -> Result<Resource<'s>>
[src]

Map a module ("java.base"), version ("9.0"), and name ("java/lang/Object.class") to a size + location.

pub fn visit<F: FnMut(VisitParams) -> VisitResult>(&self, f: F)[src]

Enumerate all resources of the file so long as the callback returns VisitResult::Continue.

Trait Implementations

impl Drop for File[src]

Auto Trait Implementations

impl RefUnwindSafe for File

impl Send for File

impl Sync for File

impl Unpin for File

impl UnwindSafe for File

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.