[−][src]Struct jimage::Resource
The location and size of a jimage resource such as java/lang/Object.class
Methods
impl<'_> Resource<'_>
[src]
pub fn size(&self) -> u64
[src]
How large this resource is in bytes
pub fn get(&self, buffer: &mut [u8]) -> Result<u64>
[src]
Read the raw bytes of this resource into the given buffer
Auto Trait Implementations
impl<'file> RefUnwindSafe for Resource<'file>
impl<'file> Send for Resource<'file>
impl<'file> Sync for Resource<'file>
impl<'file> Unpin for Resource<'file>
impl<'file> UnwindSafe for Resource<'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>,