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§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more