[][src]Struct jimage::Resource

pub struct Resource<'file> { /* fields omitted */ }

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]

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.