pub struct SourceBundle { /* private fields */ }Expand description
Validated source inventory with exact source bytes owned once.
Implementations§
Source§impl SourceBundle
impl SourceBundle
Sourcepub fn from_manifest(
manifest: SourceBundleManifestA0,
buffers: Vec<Vec<u8>>,
) -> Result<Self, SourceBundleError>
pub fn from_manifest( manifest: SourceBundleManifestA0, buffers: Vec<Vec<u8>>, ) -> Result<Self, SourceBundleError>
Pair a generated manifest with separate byte slots and validate the boundary.
pub fn root_schematic_path(&self) -> &str
pub fn project_path(&self) -> Option<&str>
pub fn total_bytes(&self) -> usize
pub fn sources(&self) -> impl ExactSizeIterator<Item = &SourceFile>
pub fn source( &self, path: &str, ) -> Result<Option<&SourceFile>, SourceBundleError>
pub fn root_schematic(&self) -> &SourceFile
pub fn project(&self) -> Option<&SourceFile>
Trait Implementations§
Source§impl Clone for SourceBundle
impl Clone for SourceBundle
Source§fn clone(&self) -> SourceBundle
fn clone(&self) -> SourceBundle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SourceBundle
impl RefUnwindSafe for SourceBundle
impl Send for SourceBundle
impl Sync for SourceBundle
impl Unpin for SourceBundle
impl UnsafeUnpin for SourceBundle
impl UnwindSafe for SourceBundle
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