pub struct StepCodec {
pub options: StepWriteOptions,
}Expand description
STEP encoder with per-export header options.
Fields§
§options: StepWriteOptionsHeader metadata and deterministic writer options.
Trait Implementations§
Source§impl Codec for StepCodec
impl Codec for StepCodec
Source§fn detect(&self, prefix: &[u8]) -> Confidence
fn detect(&self, prefix: &[u8]) -> Confidence
Judge, from a leading byte prefix, whether this codec applies.
Source§fn inspect_impl(
&self,
_ctx: &DecodeContext<'_>,
root: View<'_>,
) -> Result<ContainerSummary, CodecError>
fn inspect_impl( &self, _ctx: &DecodeContext<'_>, root: View<'_>, ) -> Result<ContainerSummary, CodecError>
Enumerate the acquired root view’s streams/segments without decoding
geometry. Read more
Source§fn decode_impl(
&self,
ctx: &DecodeContext<'_>,
root: View<'_>,
) -> Result<DecodeResult, CodecError>
fn decode_impl( &self, ctx: &DecodeContext<'_>, root: View<'_>, ) -> Result<DecodeResult, CodecError>
Decode the acquired root view, reporting incomplete or approximate
transfer. Read more
Source§impl Encoder for StepCodec
impl Encoder for StepCodec
Source§fn encode(
&self,
ir: &CadIr,
writer: &mut dyn Write,
) -> Result<ExportReport, CodecError>
fn encode( &self, ir: &CadIr, writer: &mut dyn Write, ) -> Result<ExportReport, CodecError>
Encode one IR document to the target format.
Source§fn encode_with_source_fidelity(
&self,
ir: &CadIr,
source_fidelity: Option<&SourceFidelity>,
writer: &mut dyn Write,
) -> Result<ExportReport, CodecError>
fn encode_with_source_fidelity( &self, ir: &CadIr, source_fidelity: Option<&SourceFidelity>, writer: &mut dyn Write, ) -> Result<ExportReport, CodecError>
Encode with decode-time source fidelity when the caller retained it. Read more
Auto Trait Implementations§
impl Freeze for StepCodec
impl RefUnwindSafe for StepCodec
impl Send for StepCodec
impl Sync for StepCodec
impl Unpin for StepCodec
impl UnsafeUnpin for StepCodec
impl UnwindSafe for StepCodec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<C> CodecEntry for C
impl<C> CodecEntry for C
Source§fn inspect(
&self,
reader: &mut dyn ReadSeek,
options: &InspectOptions,
) -> Result<ContainerSummary, CodecError>
fn inspect( &self, reader: &mut dyn ReadSeek, options: &InspectOptions, ) -> Result<ContainerSummary, CodecError>
Inspects the source under its input and resource limits.
Source§fn decode(
&self,
reader: &mut dyn ReadSeek,
options: &DecodeOptions,
) -> Result<DecodeResult, CodecError>
fn decode( &self, reader: &mut dyn ReadSeek, options: &DecodeOptions, ) -> Result<DecodeResult, CodecError>
Decodes the source under its input and resource limits.