[−][src]Struct sourcemap::ram_bundle::RamBundle
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]
ⓘImportant traits for RamBundleModuleIter<'a, '_>
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(&self) -> 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
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,