pub struct BundleBuilder { /* private fields */ }Implementations§
Source§impl BundleBuilder
impl BundleBuilder
pub fn new() -> Self
pub fn new_with_capacity(capacity: usize) -> Self
pub fn new_with_options(options: BundleBuilderOptions) -> Self
pub fn version(&self) -> Version
pub fn set_version(&mut self, version: Version) -> &mut Self
pub fn options(&self) -> &BundleBuilderOptions
pub fn set_options(&mut self, options: BundleBuilderOptions) -> &mut Self
pub fn entries(&self) -> &HashMap<String, BundleEntry>
pub fn insert_entry<S: Into<String>, E: Into<BundleEntry>>( &mut self, path: S, entry: E, ) -> Option<BundleEntry>
pub fn get_entry(&self, path: &str) -> Option<&BundleEntry>
pub fn get_entry_mut(&mut self, path: &str) -> Option<&mut BundleEntry>
pub fn remove_entry(&mut self, path: &str) -> Option<BundleEntry>
pub fn contains_path(&self, path: &str) -> bool
pub fn build(&self) -> Result<Bundle, Error>
Trait Implementations§
Source§impl Debug for BundleBuilder
impl Debug for BundleBuilder
Source§impl Default for BundleBuilder
impl Default for BundleBuilder
Source§fn default() -> BundleBuilder
fn default() -> BundleBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BundleBuilder
impl RefUnwindSafe for BundleBuilder
impl Send for BundleBuilder
impl Sync for BundleBuilder
impl Unpin for BundleBuilder
impl UnwindSafe for BundleBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more