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 inspect_impl(
&self,
ctx: &DecodeContext<'_>,
root: View<'_>,
) -> Result<ContainerSummary, CodecError>
fn inspect_impl( &self, ctx: &DecodeContext<'_>, root: View<'_>, ) -> Result<ContainerSummary, CodecError>
Deep semantic analysis of a STEP exchange, exposed as container inspect.
Runs the semantic decode path to populate unknown_entities and related
attributes. Not a cheap syntactic census; see
docs/formats/step-inspect.md.
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 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 plan<'a>(&self, input: EncodeInput<'a>) -> Result<ExportPlan<'a>, CodecError>
fn plan<'a>(&self, input: EncodeInput<'a>) -> Result<ExportPlan<'a>, CodecError>
Plans one export without writing to the destination.
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 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. Read more