pub struct PartResolver<'a, A: ArchiveReader> { /* private fields */ }Expand description
Resolves resources across multiple model parts in a 3MF package.
Implementations§
Source§impl<'a, A: ArchiveReader> PartResolver<'a, A>
impl<'a, A: ArchiveReader> PartResolver<'a, A>
pub fn new(archive: &'a mut A, root_model: Model) -> Self
pub fn resolve_object( &mut self, id: ResourceId, path: Option<&str>, ) -> Result<Option<(&Model, &Object)>>
pub fn resolve_base_materials( &mut self, id: ResourceId, path: Option<&str>, ) -> Result<Option<&BaseMaterialsGroup>>
pub fn resolve_color_group( &mut self, id: ResourceId, path: Option<&str>, ) -> Result<Option<&ColorGroup>>
pub fn get_root_model(&self) -> &Model
pub fn archive_mut(&mut self) -> &mut A
Auto Trait Implementations§
impl<'a, A> Freeze for PartResolver<'a, A>
impl<'a, A> RefUnwindSafe for PartResolver<'a, A>where
A: RefUnwindSafe,
impl<'a, A> Send for PartResolver<'a, A>where
A: Send,
impl<'a, A> Sync for PartResolver<'a, A>where
A: Sync,
impl<'a, A> Unpin for PartResolver<'a, A>
impl<'a, A> !UnwindSafe for PartResolver<'a, A>
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