[−][src]Struct jimage::File
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]
&'s self,
module_name: &CStr,
version: &CStr,
name: &CStr
) -> Result<Resource<'s>>
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,