pub enum SliceMode {
PreserveOriginal,
Inline,
External,
}Expand description
Controls how slice data is written to the 3MF archive.
PreserveOriginal: Writes inline slices as<slice>elements and slice references as<sliceref>elements, preserving the original structure as parsed. This is the only mode fully implemented in Phase 13.Inline: Would convert all external slicerefs to inline slices. Not yet implemented.External: Would move inline slices to external files with slicerefs. Not yet implemented.
Variants§
PreserveOriginal
Write slices inline as <slice> elements and references as <sliceref> elements (default).
Inline
Convert all external slice references to inline <slice> elements (not yet implemented).
External
Move inline slices to external files with <sliceref> elements (not yet implemented).
Trait Implementations§
impl Copy for SliceMode
impl Eq for SliceMode
impl StructuralPartialEq for SliceMode
Auto Trait Implementations§
impl Freeze for SliceMode
impl RefUnwindSafe for SliceMode
impl Send for SliceMode
impl Sync for SliceMode
impl Unpin for SliceMode
impl UnsafeUnpin for SliceMode
impl UnwindSafe for SliceMode
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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