[][src]Struct sourcemap::ram_bundle::RamBundle

pub struct RamBundle<'a> { /* fields omitted */ }

Represents a react-native RAM bundle.

Provides access to a react-native metro RAM bundle.

Methods

impl<'a> RamBundle<'a>[src]

pub fn parse(bytes: &'a [u8]) -> Result<Self>[src]

Parses a RAM bundle from a given slice of bytes.

pub fn module_count(&self) -> usize[src]

Returns the number of modules in the bundle

pub fn startup_code(&self) -> Result<&'a [u8]>[src]

Returns the startup code

pub fn get_module(&self, id: usize) -> Result<Option<RamBundleModule<'a>>>[src]

Looks up a module by ID in the bundle

Important traits for RamBundleModuleIter<'a, '_>
pub fn iter_modules(&self) -> RamBundleModuleIter<'a, '_>[src]

Returns an iterator over all modules in the bundle

Trait Implementations

impl<'a> Copy for RamBundle<'a>[src]

impl<'a> Clone for RamBundle<'a>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> Debug for RamBundle<'a>[src]

Auto Trait Implementations

impl<'a> Send for RamBundle<'a>

impl<'a> Sync for RamBundle<'a>

Blanket Implementations

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.