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 CodecBackend for StepCodec
impl CodecBackend for StepCodec
Source§fn detect_impl(
&self,
ctx: &DecodeContext<'_>,
prefix: View<'_>,
) -> Result<Confidence, CodecError>
fn detect_impl( &self, ctx: &DecodeContext<'_>, prefix: View<'_>, ) -> Result<Confidence, CodecError>
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<Decoded, CodecError>
fn decode_impl( &self, ctx: &DecodeContext<'_>, root: View<'_>, ) -> Result<Decoded, CodecError>
Decode the acquired root view, reporting incomplete or approximate
transfer. Read more
Source§fn validate_native(
_ctx: &DecodeContext<'_>,
_ir: &CadIr,
_source: Option<&SourceFidelity>,
) -> Result<Vec<Finding>, CodecError>
fn validate_native( _ctx: &DecodeContext<'_>, _ir: &CadIr, _source: Option<&SourceFidelity>, ) -> Result<Vec<Finding>, CodecError>
Findings this codec’s own validator reports over its native
namespace on a decoded document. Read more
Source§impl EncoderBackend for StepCodec
impl EncoderBackend for StepCodec
Source§const NEEDS: DepthNeed
const NEEDS: DepthNeed
Writes B-rep, product structure, presentation and PMI; design arenas are reported as omitted, not read.
Source§fn plan_resolved(
&self,
input: EncodeInput<'_>,
target: ResolvedWrite<'_>,
) -> Result<ExportBody, CodecError>
fn plan_resolved( &self, input: EncodeInput<'_>, target: ResolvedWrite<'_>, ) -> Result<ExportBody, CodecError>
Synthesis-only encoder. An off-catalog STEP source cannot be reproduced because every emitted schema stamps object-identifier arcs.
Source§const FORMAT: FormatId = <Self as CodecBackend>::FORMAT
const FORMAT: FormatId = <Self as CodecBackend>::FORMAT
Stable output format id, taken from the codec that reads the format.
Source§const TARGET: Catalog
const TARGET: Catalog
The domain value:
DialectFree or a target::Catalog of this format’s
output flavors.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> Codec for Cwhere
C: CodecBackend + ?Sized,
impl<C> Codec for Cwhere
C: CodecBackend + ?Sized,
Source§fn id(&self) -> FormatId
fn id(&self) -> FormatId
Registry format namespace,
CodecBackend::FORMAT.Source§fn detect(
&self,
ctx: &DecodeContext<'_>,
prefix: View<'_>,
) -> Result<Confidence, CodecError>
fn detect( &self, ctx: &DecodeContext<'_>, prefix: View<'_>, ) -> Result<Confidence, CodecError>
Judge, from a leading byte prefix, whether this codec applies.
Source§fn validate_native(
&self,
ctx: &DecodeContext<'_>,
ir: &CadIr,
source: Option<&SourceFidelity>,
) -> Result<Vec<Finding>, CodecError>
fn validate_native( &self, ctx: &DecodeContext<'_>, ir: &CadIr, source: Option<&SourceFidelity>, ) -> Result<Vec<Finding>, CodecError>
Findings this codec reports over its own native namespace,
CodecBackend::validate_native.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, DecodeFailure>
fn decode( &self, reader: &mut dyn ReadSeek, options: &DecodeOptions, ) -> Result<DecodeResult, DecodeFailure>
Decodes the source under its input and resource limits. Read more
Source§fn decode_with_context(
&self,
ctx: &DecodeContext<'_>,
root: View<'_>,
) -> Result<DecodeResult, DecodeFailure>
fn decode_with_context( &self, ctx: &DecodeContext<'_>, root: View<'_>, ) -> Result<DecodeResult, DecodeFailure>
Decodes an acquired root in the caller’s detection session, under the
session’s policy and requested depth.
The caller finishes the session after this method returns.
Source§impl<E> Encoder for Ewhere
E: EncoderBackend,
impl<E> Encoder for Ewhere
E: EncoderBackend,
Source§fn targets(&self) -> TargetCatalog
fn targets(&self) -> TargetCatalog
The static catalog of output flavors this encoder can produce. Read more
Source§fn needs(&self) -> DepthNeed
fn needs(&self) -> DepthNeed
The decode depth this encoder plans from,
EncoderBackend::NEEDS.
A caller decodes at DepthNeed::request.Source§fn plan(
&self,
input: EncodeInput<'_>,
request: TargetRequest<'_>,
) -> Result<ExportPlan, CodecError>
fn plan( &self, input: EncodeInput<'_>, request: TargetRequest<'_>, ) -> Result<ExportPlan, CodecError>
Plans one export without writing to the destination. Read more